Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

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

Max Schmittee8c199f485b
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();
});