@@ -697,7 +697,7 @@ def wait_for_event(
697697 ) -> typing .Any :
698698 """WebSocket.wait_for_event
699699
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 ()`.
701701
702702 Waits for given `event` to fire. If predicate is provided, it passes event's value into the `predicate` function and
703703 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:
56295629 - `page.goto()`
56305630 - `page.reload()`
56315631 - `page.set_content()`
5632- - `page.wait_for_navigation ()`
5632+ - `page.expect_navigation ()`
56335633
56345634 > NOTE: `page.set_default_navigation_timeout()` takes priority over `page.set_default_timeout()`,
56355635 `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
56815681 The method finds an element matching the specified selector within the page. If no elements match the selector, the
56825682 return value resolves to `null`.
56835683
5684- Shortcut for main frame's `frame.$ ()`.
5684+ Shortcut for main frame's `frame.query_selector ()`.
56855685
56865686 Parameters
56875687 ----------
@@ -5710,7 +5710,7 @@ def query_selector_all(self, selector: str) -> typing.List["ElementHandle"]:
57105710 The method finds all elements matching the specified selector within the page. If no elements match the selector, the
57115711 return value resolves to `[]`.
57125712
5713- Shortcut for main frame's `frame.$$ ()`.
5713+ Shortcut for main frame's `frame.query_selector_all ()`.
57145714
57155715 Parameters
57165716 ----------
@@ -6212,7 +6212,7 @@ def eval_on_selector(
62126212 The method finds an element matching the specified selector within the page and passes it as a first argument to
62136213 `pageFunction`. If no elements match the selector, the method throws an error. Returns the value of `pageFunction`.
62146214
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
62166216 value.
62176217
62186218 Examples:
@@ -6223,7 +6223,7 @@ def eval_on_selector(
62236223 html = page.eval_on_selector(\" .main-container\" , \" (e, suffix) => e.outer_html + suffix\" , \" hello\" )
62246224 ```
62256225
6226- Shortcut for main frame's `frame.$eval ()`.
6226+ Shortcut for main frame's `frame.eval_on_selector ()`.
62276227
62286228 Parameters
62296229 ----------
@@ -6273,7 +6273,7 @@ def eval_on_selector_all(
62736273 The method finds all elements matching the specified selector within the page and passes an array of matched elements as
62746274 a first argument to `pageFunction`. Returns the result of `pageFunction` invocation.
62756275
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
62776277 value.
62786278
62796279 Examples:
@@ -6810,7 +6810,7 @@ def wait_for_event(
68106810 ) -> typing .Any :
68116811 """Page.wait_for_event
68126812
6813- > NOTE: In most cases, you should use `page.wait_for_event ()`.
6813+ > NOTE: In most cases, you should use `page.expect_event ()`.
68146814
68156815 Waits for given `event` to fire. If predicate is provided, it passes event's value into the `predicate` function and
68166816 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:
72747274 By default, `page.close()` **does not** run `beforeunload` handlers.
72757275
72767276 > 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.
72787278
72797279 Parameters
72807280 ----------
@@ -8601,7 +8601,7 @@ def expect_navigation(
86018601 > NOTE: Usage of the [History API](https://developer.mozilla.org/en-US/docs/Web/API/History_API) to change the URL is
86028602 considered a navigation.
86038603
8604- Shortcut for main frame's `frame.wait_for_navigation ()`.
8604+ Shortcut for main frame's `frame.expect_navigation ()`.
86058605
86068606 Parameters
86078607 ----------
@@ -8807,7 +8807,7 @@ def set_default_navigation_timeout(self, timeout: float) -> NoneType:
88078807 - `page.goto()`
88088808 - `page.reload()`
88098809 - `page.set_content()`
8810- - `page.wait_for_navigation ()`
8810+ - `page.expect_navigation ()`
88118811
88128812 > NOTE: `page.set_default_navigation_timeout()` and `page.set_default_timeout()` take priority over
88138813 `browser_context.set_default_navigation_timeout()`.
@@ -9470,7 +9470,7 @@ def wait_for_event(
94709470 ) -> typing .Any :
94719471 """BrowserContext.wait_for_event
94729472
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 ()`.
94749474
94759475 Waits for given `event` to fire. If predicate is provided, it passes event's value into the `predicate` function and
94769476 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