diff --git a/docs/api.md b/docs/api.md index 89f2144c0c..763be0e88e 100644 --- a/docs/api.md +++ b/docs/api.md @@ -78,7 +78,7 @@ const iPhone = playwright.devices['iPhone 6']; const browser = await playwright.launch(); const context = await browser.newContext({ viewport: iPhone.viewport, - userAgent: iPhone.userAgent; + userAgent: iPhone.userAgent }); const page = await context.newPage('http://example.com'); // other actions...