Skip to content

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

docs: declare expect_navigation as returning Response (#5020)

Pavel Feldman5dcb7bb290b6
diff --git a/docs/src/api/python.md b/docs/src/api/python.md
index 9884cef540..1557735ef1 100644
--- a/docs/src/api/python.md
+++ b/docs/src/api/python.md
@@ -224,7 +224,7 @@ Shortcut for main frame's [`method: Frame.expectNavigation`].
## async method: Frame.expectNavigation
* langs: python
-- returns: <[EventContextManager]>
+- returns: <[EventContextManager[Response]]>
Performs action and waits for the next navigation. In case of multiple redirects, the navigation will resolve with
the response of the last redirect. In case of navigation to a different anchor or navigation due to History API