mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
chore: mark waitForNavigation as deprecated consistently (#21309)
This commit is contained in:
parent
54dfe5378d
commit
2cbafd7adf
@ -1937,6 +1937,7 @@ await frame.WaitForLoadStateAsync(); // Defaults to LoadState.Load
|
|||||||
|
|
||||||
## async method: Frame.waitForNavigation
|
## async method: Frame.waitForNavigation
|
||||||
* since: v1.8
|
* since: v1.8
|
||||||
|
* deprecated: This method is inherently racy, please use [`method: Frame.waitForURL`] instead.
|
||||||
* langs:
|
* langs:
|
||||||
* alias-python: expect_navigation
|
* alias-python: expect_navigation
|
||||||
* alias-csharp: RunAndWaitForNavigation
|
* alias-csharp: RunAndWaitForNavigation
|
||||||
@ -1995,6 +1996,7 @@ a navigation.
|
|||||||
|
|
||||||
## async method: Frame.waitForNavigation
|
## async method: Frame.waitForNavigation
|
||||||
* since: v1.8
|
* since: v1.8
|
||||||
|
* deprecated: This method is inherently racy, please use [`method: Frame.waitForURL`] instead.
|
||||||
* langs: python
|
* langs: python
|
||||||
- returns: <[EventContextManager]<[Response]>>
|
- returns: <[EventContextManager]<[Response]>>
|
||||||
|
|
||||||
|
@ -4249,6 +4249,7 @@ a navigation.
|
|||||||
|
|
||||||
## async method: Page.waitForNavigation
|
## async method: Page.waitForNavigation
|
||||||
* since: v1.8
|
* since: v1.8
|
||||||
|
* deprecated: This method is inherently racy, please use [`method: Page.waitForURL`] instead.
|
||||||
* langs: python
|
* langs: python
|
||||||
- returns: <[EventContextManager]<[Response]>>
|
- returns: <[EventContextManager]<[Response]>>
|
||||||
|
|
||||||
|
2
packages/playwright-core/types/types.d.ts
vendored
2
packages/playwright-core/types/types.d.ts
vendored
@ -7163,6 +7163,8 @@ export interface Frame {
|
|||||||
*
|
*
|
||||||
* **NOTE** Usage of the [History API](https://developer.mozilla.org/en-US/docs/Web/API/History_API) to change the URL
|
* **NOTE** Usage of the [History API](https://developer.mozilla.org/en-US/docs/Web/API/History_API) to change the URL
|
||||||
* is considered a navigation.
|
* is considered a navigation.
|
||||||
|
* @deprecated This method is inherently racy, please use
|
||||||
|
* [frame.waitForURL(url[, options])](https://playwright.dev/docs/api/class-frame#frame-wait-for-url) instead.
|
||||||
* @param options
|
* @param options
|
||||||
*/
|
*/
|
||||||
waitForNavigation(options?: {
|
waitForNavigation(options?: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user