Skip to content

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

fix: permissions in mobile and geolocation example (#1667)

lcmtwn2eba79bc984a
diff --git a/README.md b/README.md
index f244349dbd..ce69acb16f 100644
--- a/README.md
+++ b/README.md
@@ -64,7 +64,7 @@ const iPhone11 = devices['iPhone 11 Pro'];
viewport: iPhone11.viewport,
userAgent: iPhone11.userAgent,
geolocation: { longitude: 12.492507, latitude: 41.889938 },
- permissions: { 'https://www.google.com': ['geolocation'] }
+ permissions: ['geolocation']
});
const page = await context.newPage();
await page.goto('https://maps.google.com');