diff --git a/docs/src/api/class-accessibility.md b/docs/src/api/class-accessibility.md index dce0b8cc85..97f697c8dc 100644 --- a/docs/src/api/class-accessibility.md +++ b/docs/src/api/class-accessibility.md @@ -1,8 +1,7 @@ # class: Accessibility * since: v1.8 * langs: csharp, js, python - -**DEPRECATED** This class is deprecated. Please use other libraries such as [Axe](https://www.deque.com/axe/) if you need to test page accessibility. See our Node.js [guide](https://playwright.dev/docs/accessibility-testing) for integration with Axe. +* deprecated: This class is deprecated. Please use other libraries such as [Axe](https://www.deque.com/axe/) if you need to test page accessibility. See our Node.js [guide](https://playwright.dev/docs/accessibility-testing) for integration with Axe. The Accessibility class provides methods for inspecting Chromium's accessibility tree. The accessibility tree is used by assistive technology such as [screen readers](https://en.wikipedia.org/wiki/Screen_reader) or @@ -20,6 +19,8 @@ assistive technologies themselves. By default, Playwright tries to approximate t ## async method: Accessibility.snapshot * since: v1.8 +* deprecated: This method is deprecated. Please use other libraries such as [Axe](https://www.deque.com/axe/) if you need to test page accessibility. See our Node.js [guide](https://playwright.dev/docs/accessibility-testing) for integration with Axe. + - returns: <[null]|[Object]> - `role` <[string]> The [role](https://www.w3.org/TR/wai-aria/#usage_intro). - `name` <[string]> A human readable name for the node. @@ -48,8 +49,6 @@ assistive technologies themselves. By default, Playwright tries to approximate t - `orientation` <[string]> Whether the node is oriented horizontally or vertically, if applicable. - `children` <[Array]<[Object]>> Child nodes, if any, if applicable. -**DEPRECATED** This method is deprecated. Please use other libraries such as [Axe](https://www.deque.com/axe/) if you need to test page accessibility. See our Node.js [guide](https://playwright.dev/docs/accessibility-testing) for integration with Axe. - Captures the current state of the accessibility tree. The returned object represents the root accessible node of the page. diff --git a/docs/src/api/class-browsercontext.md b/docs/src/api/class-browsercontext.md index 82f9c4ec41..7f2cdf88b1 100644 --- a/docs/src/api/class-browsercontext.md +++ b/docs/src/api/class-browsercontext.md @@ -1223,8 +1223,7 @@ its geolocation. ## async method: BrowserContext.setHTTPCredentials * since: v1.8 * langs: js - -**DEPRECATED** Browsers may cache credentials after successful authentication. Create a new browser context instead. +* deprecated: Browsers may cache credentials after successful authentication. Create a new browser context instead. ### param: BrowserContext.setHTTPCredentials.httpCredentials * since: v1.8 diff --git a/docs/src/api/class-frame.md b/docs/src/api/class-frame.md index 43c51065a9..8b257fa587 100644 --- a/docs/src/api/class-frame.md +++ b/docs/src/api/class-frame.md @@ -188,6 +188,7 @@ Raw CSS content to be injected into frame. ## async method: Frame.check * since: v1.8 +* discouraged: Use locator-based [`method: Locator.check`] instead. This method checks an element matching [`param: selector`] by performing the following steps: 1. Find an element matching [`param: selector`]. If there is none, wait until a matching element is attached to @@ -231,6 +232,7 @@ When all steps combined have not finished during the specified [`option: timeout ## async method: Frame.click * since: v1.8 +* discouraged: Use locator-based [`method: Locator.click`] instead. This method clicks an element matching [`param: selector`] by performing the following steps: 1. Find an element matching [`param: selector`]. If there is none, wait until a matching element is attached to @@ -285,6 +287,7 @@ Gets the full HTML contents of the frame, including the doctype. ## async method: Frame.dblclick * since: v1.8 +* discouraged: Use locator-based [`method: Locator.dblclick`] instead. * langs: - alias-csharp: DblClickAsync @@ -337,6 +340,7 @@ When all steps combined have not finished during the specified [`option: timeout ## async method: Frame.dispatchEvent * since: v1.8 +* discouraged: Use locator-based [`method: Locator.dispatchEvent`] instead. The snippet below dispatches the `click` event on the element. Regardless of the visibility state of the element, `click` is dispatched. This is equivalent to calling @@ -465,6 +469,7 @@ Optional event-specific initialization properties. ## async method: Frame.evalOnSelector * since: v1.9 +* discouraged: Use locator-based [`method: Locator.evaluate`] instead. * langs: - alias-python: eval_on_selector - alias-js: $eval @@ -533,6 +538,7 @@ Optional argument to pass to [`param: expression`]. ## async method: Frame.evalOnSelectorAll * since: v1.9 +* discouraged: Use locator-based [`method: Locator.evaluateAll`] instead. * langs: - alias-python: eval_on_selector_all - alias-js: $$eval @@ -805,6 +811,7 @@ Optional argument to pass to [`param: expression`]. ## async method: Frame.fill * since: v1.8 +* discouraged: Use locator-based [`method: Locator.fill`] instead. This method waits for an element matching [`param: selector`], waits for [actionability](../actionability.md) checks, focuses the element, fills it and triggers an `input` event after filling. Note that you can pass an empty string to clear the input field. @@ -835,6 +842,7 @@ Value to fill for the ``, `