mirror of
https://github.com/microsoft/playwright.git
synced 2025-01-07 11:46:42 +03:00
docs: add missing await in page.route (#9706)
This commit is contained in:
parent
e17dbe8d01
commit
ee8c199f48
@ -122,7 +122,7 @@ const { webkit } = require('playwright');
|
|||||||
const page = await context.newPage();
|
const page = await context.newPage();
|
||||||
|
|
||||||
// Log and continue all network requests
|
// Log and continue all network requests
|
||||||
page.route('**', route => {
|
await page.route('**', route => {
|
||||||
console.log(route.request().url());
|
console.log(route.request().url());
|
||||||
route.continue();
|
route.continue();
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user