File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ async def main():
77
77
async with async_playwright() as p:
78
78
for browser_type in [p.chromium, p.firefox, p.webkit]:
79
79
browser = await browser_type.launch()
80
- page = await browser.newPage ()
80
+ page = await browser.new_page ()
81
81
await page.goto(' http://whatsmyuseragent.org/' )
82
82
await page.screenshot(path = f ' example- { browser_type.name} .png ' )
83
83
await browser.close()
@@ -164,7 +164,7 @@ async def main():
164
164
async with async_playwright() as p:
165
165
iphone_11 = p.devices[" iPhone 11 Pro" ]
166
166
browser = await p.webkit.launch(headless = False )
167
- context = await browser.newContext (
167
+ context = await browser.new_context (
168
168
** iphone_11,
169
169
locale = " en-US" ,
170
170
geolocation = {" longitude" : 12.492507 , " latitude" : 41.889938 },
@@ -258,7 +258,7 @@ from playwright.async_api import async_playwright
258
258
async def main ():
259
259
async with async_playwright() as p:
260
260
browser = await p.chromium.launch()
261
- page = await browser.newPage ()
261
+ page = await browser.new_page ()
262
262
263
263
async def log_and_continue_request (route , request ):
264
264
print (request.url)
You can’t perform that action at this time.
0 commit comments