docs: declare expect_navigation as returning Response (#5020)

This commit is contained in:
Pavel Feldman 2021-01-14 14:40:19 -08:00 committed by GitHub
parent ff20b9d107
commit 5dcb7bb290
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -224,7 +224,7 @@ Shortcut for main frame's [`method: Frame.expectNavigation`].
## async method: Frame.expectNavigation ## async method: Frame.expectNavigation
* langs: python * 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 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 the response of the last redirect. In case of navigation to a different anchor or navigation due to History API