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 function name mismatch in python route example (#23010)

Dmitry Leonovaef7a2817d83
diff --git a/docs/src/api/class-route.md b/docs/src/api/class-route.md
index 4af70a2fad..43e9d718f0 100644
--- a/docs/src/api/class-route.md
+++ b/docs/src/api/class-route.md
@@ -264,7 +264,7 @@ page.route("**/*", route -> {
```python async
# Handle GET requests.
-def handle_post(route):
+def handle_get(route):
if route.request.method != "GET":
route.fallback()
return
@@ -285,7 +285,7 @@ await page.route("**/*", handle_post)
```python sync
# Handle GET requests.
-def handle_post(route):
+def handle_get(route):
if route.request.method != "GET":
route.fallback()
return