Skip to content

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

docs: fix Python snippet casing (#5244)

Pavel Feldman174b6aa2daf0
diff --git a/docs/src/api/python.md b/docs/src/api/python.md
index dfe6817e39..77a32ba798 100644
--- a/docs/src/api/python.md
+++ b/docs/src/api/python.md
@@ -9,7 +9,7 @@ Terminates this instance of Playwright in case it was created bypassing the Pyth
>>> playwright = sync_playwright().start()
>>> browser = playwright.chromium.launch()
->>> page = browser.newPage()
+>>> page = browser.new_page()
>>> page.goto("http://whatsmyuseragent.org/")
>>> page.screenshot(path="example.png")
>>> browser.close()