docs: add missing await in page.route (#9706)

This commit is contained in:
Max Schmitt 2021-10-22 18:06:26 +02:00 committed by GitHub
parent e17dbe8d01
commit ee8c199f48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -122,7 +122,7 @@ const { webkit } = require('playwright');
const page = await context.newPage();
// Log and continue all network requests
page.route('**', route => {
await page.route('**', route => {
console.log(route.request().url());
route.continue();
});