Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Commit d7f338b

Browse files
committed
Convert touchscreen example to async
1 parent 4f692e3 commit d7f338b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/touchscreen.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export default async function () {
2121
// Obtain ElementHandle for news link and navigate to it
2222
// by tapping in the 'a' element's bounding box
2323
const newsLinkBox = page.$('a[href="/news.php"]').boundingBox();
24-
page.touchscreen.tap(newsLinkBox.x + newsLinkBox.width / 2, newsLinkBox.y);
24+
await page.touchscreen.tap(newsLinkBox.x + newsLinkBox.width / 2, newsLinkBox.y);
2525

2626
// Wait until the navigation is done before closing the page.
2727
// Otherwise, there will be a race condition between the page closing

0 commit comments

Comments
 (0)