Skip to content

Commit 10912a5

Browse files
committed
Use page.mouse.click) at 0,0 instead of page.click()
1 parent 0d133da commit 10912a5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

cli/commands/benchmark-web-vitals.mjs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -651,9 +651,7 @@ async function benchmarkURL( url, metricsDefinition, params, logProgress ) {
651651
*
652652
* Click off screen to prevent clicking a link by accident and navigating away.
653653
*/
654-
await page.click( 'body', {
655-
offset: { x: 0, y: 0 },
656-
} );
654+
await page.mouse.click( 0, 0 );
657655
// Get the metric value from the global.
658656
const metric =
659657
/** @type {number} */ await page.evaluate(

0 commit comments

Comments
 (0)