@@ -697,7 +697,7 @@ def wait_for_event(
697
697
) -> typing .Any :
698
698
"""WebSocket.wait_for_event
699
699
700
- > NOTE: In most cases, you should use `web_socket.wait_for_event ()`.
700
+ > NOTE: In most cases, you should use `web_socket.expect_event ()`.
701
701
702
702
Waits for given `event` to fire. If predicate is provided, it passes event's value into the `predicate` function and
703
703
waits for `predicate(event)` to return a truthy value. Will throw an error if the socket is closed before the `event` is
@@ -5629,7 +5629,7 @@ def set_default_navigation_timeout(self, timeout: float) -> NoneType:
5629
5629
- `page.goto()`
5630
5630
- `page.reload()`
5631
5631
- `page.set_content()`
5632
- - `page.wait_for_navigation ()`
5632
+ - `page.expect_navigation ()`
5633
5633
5634
5634
> NOTE: `page.set_default_navigation_timeout()` takes priority over `page.set_default_timeout()`,
5635
5635
`browser_context.set_default_timeout()` and `browser_context.set_default_navigation_timeout()`.
@@ -5681,7 +5681,7 @@ def query_selector(self, selector: str) -> typing.Union["ElementHandle", NoneTyp
5681
5681
The method finds an element matching the specified selector within the page. If no elements match the selector, the
5682
5682
return value resolves to `null`.
5683
5683
5684
- Shortcut for main frame's `frame.$ ()`.
5684
+ Shortcut for main frame's `frame.query_selector ()`.
5685
5685
5686
5686
Parameters
5687
5687
----------
@@ -5710,7 +5710,7 @@ def query_selector_all(self, selector: str) -> typing.List["ElementHandle"]:
5710
5710
The method finds all elements matching the specified selector within the page. If no elements match the selector, the
5711
5711
return value resolves to `[]`.
5712
5712
5713
- Shortcut for main frame's `frame.$$ ()`.
5713
+ Shortcut for main frame's `frame.query_selector_all ()`.
5714
5714
5715
5715
Parameters
5716
5716
----------
@@ -6212,7 +6212,7 @@ def eval_on_selector(
6212
6212
The method finds an element matching the specified selector within the page and passes it as a first argument to
6213
6213
`pageFunction`. If no elements match the selector, the method throws an error. Returns the value of `pageFunction`.
6214
6214
6215
- If `pageFunction` returns a [Promise], then `page.$eval ()` would wait for the promise to resolve and return its
6215
+ If `pageFunction` returns a [Promise], then `page.eval_on_selector ()` would wait for the promise to resolve and return its
6216
6216
value.
6217
6217
6218
6218
Examples:
@@ -6223,7 +6223,7 @@ def eval_on_selector(
6223
6223
html = page.eval_on_selector(\" .main-container\" , \" (e, suffix) => e.outer_html + suffix\" , \" hello\" )
6224
6224
```
6225
6225
6226
- Shortcut for main frame's `frame.$eval ()`.
6226
+ Shortcut for main frame's `frame.eval_on_selector ()`.
6227
6227
6228
6228
Parameters
6229
6229
----------
@@ -6273,7 +6273,7 @@ def eval_on_selector_all(
6273
6273
The method finds all elements matching the specified selector within the page and passes an array of matched elements as
6274
6274
a first argument to `pageFunction`. Returns the result of `pageFunction` invocation.
6275
6275
6276
- If `pageFunction` returns a [Promise], then `page.$$eval ()` would wait for the promise to resolve and return its
6276
+ If `pageFunction` returns a [Promise], then `page.eval_on_selector_all ()` would wait for the promise to resolve and return its
6277
6277
value.
6278
6278
6279
6279
Examples:
@@ -6810,7 +6810,7 @@ def wait_for_event(
6810
6810
) -> typing .Any :
6811
6811
"""Page.wait_for_event
6812
6812
6813
- > NOTE: In most cases, you should use `page.wait_for_event ()`.
6813
+ > NOTE: In most cases, you should use `page.expect_event ()`.
6814
6814
6815
6815
Waits for given `event` to fire. If predicate is provided, it passes event's value into the `predicate` function and
6816
6816
waits for `predicate(event)` to return a truthy value. Will throw an error if the socket is closed before the `event` is
@@ -7274,7 +7274,7 @@ def close(self, run_before_unload: bool = None) -> NoneType:
7274
7274
By default, `page.close()` **does not** run `beforeunload` handlers.
7275
7275
7276
7276
> NOTE: if `runBeforeUnload` is passed as true, a `beforeunload` dialog might be summoned and should be handled manually
7277
- via [`event: Page. dialog`] event.
7277
+ via `page.on(' dialog')` event.
7278
7278
7279
7279
Parameters
7280
7280
----------
@@ -8601,7 +8601,7 @@ def expect_navigation(
8601
8601
> NOTE: Usage of the [History API](https://developer.mozilla.org/en-US/docs/Web/API/History_API) to change the URL is
8602
8602
considered a navigation.
8603
8603
8604
- Shortcut for main frame's `frame.wait_for_navigation ()`.
8604
+ Shortcut for main frame's `frame.expect_navigation ()`.
8605
8605
8606
8606
Parameters
8607
8607
----------
@@ -8807,7 +8807,7 @@ def set_default_navigation_timeout(self, timeout: float) -> NoneType:
8807
8807
- `page.goto()`
8808
8808
- `page.reload()`
8809
8809
- `page.set_content()`
8810
- - `page.wait_for_navigation ()`
8810
+ - `page.expect_navigation ()`
8811
8811
8812
8812
> NOTE: `page.set_default_navigation_timeout()` and `page.set_default_timeout()` take priority over
8813
8813
`browser_context.set_default_navigation_timeout()`.
@@ -9470,7 +9470,7 @@ def wait_for_event(
9470
9470
) -> typing .Any :
9471
9471
"""BrowserContext.wait_for_event
9472
9472
9473
- > NOTE: In most cases, you should use `browser_context.wait_for_event ()`.
9473
+ > NOTE: In most cases, you should use `browser_context.expect_event ()`.
9474
9474
9475
9475
Waits for given `event` to fire. If predicate is provided, it passes event's value into the `predicate` function and
9476
9476
waits for `predicate(event)` to return a truthy value. Will throw an error if the socket is closed before the `event` is
0 commit comments