docs: fix Python snippet casing (#5244)
This commit is contained in:
parent
1db5ef24a8
commit
174b6aa2da
|
|
@ -9,7 +9,7 @@ Terminates this instance of Playwright in case it was created bypassing the Pyth
|
||||||
>>> playwright = sync_playwright().start()
|
>>> playwright = sync_playwright().start()
|
||||||
|
|
||||||
>>> browser = playwright.chromium.launch()
|
>>> browser = playwright.chromium.launch()
|
||||||
>>> page = browser.newPage()
|
>>> page = browser.new_page()
|
||||||
>>> page.goto("http://whatsmyuseragent.org/")
|
>>> page.goto("http://whatsmyuseragent.org/")
|
||||||
>>> page.screenshot(path="example.png")
|
>>> page.screenshot(path="example.png")
|
||||||
>>> browser.close()
|
>>> browser.close()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue