From ee8c199f485bfd73a60a4e5e18ead08de38acbf4 Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Fri, 22 Oct 2021 18:06:26 +0200 Subject: [PATCH] docs: add missing await in page.route (#9706) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ea6b577abf..a6964715f3 100644 --- a/README.md +++ b/README.md @@ -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(); });