lighthouse 11.6.0-dev.20240310 → 11.6.0-dev.20240311
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -119,11 +119,13 @@ class FullPageScreenshot extends BaseGatherer {
|
|
|
119
119
|
* @return {Promise<LH.Result.FullPageScreenshot['screenshot']>}
|
|
120
120
|
*/
|
|
121
121
|
async _takeScreenshot(context) {
|
|
122
|
-
const metrics = await
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
122
|
+
const [metrics, result] = await Promise.all([
|
|
123
|
+
context.driver.defaultSession.sendCommand('Page.getLayoutMetrics'),
|
|
124
|
+
context.driver.defaultSession.sendCommand('Page.captureScreenshot', {
|
|
125
|
+
format: FULL_PAGE_SCREENSHOT_FORMAT,
|
|
126
|
+
quality: FULL_PAGE_SCREENSHOT_QUALITY,
|
|
127
|
+
}),
|
|
128
|
+
]);
|
|
127
129
|
const data = `data:image/${FULL_PAGE_SCREENSHOT_FORMAT};base64,` + result.data;
|
|
128
130
|
|
|
129
131
|
return {
|
package/package.json
CHANGED