Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions dotnet/docs/api/class-accessibility.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ import TabItem from '@theme/TabItem';
import HTMLCard from '@site/src/components/HTMLCard';


:::warning[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 [switches](https://en.wikipedia.org/wiki/Switch_access).

Accessibility is a very platform-specific thing. On different platforms, there are different screen readers that might have wildly different output.
Expand Down
5 changes: 5 additions & 0 deletions nodejs/docs/api/class-accessibility.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ import TabItem from '@theme/TabItem';
import HTMLCard from '@site/src/components/HTMLCard';


:::warning[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 [switches](https://en.wikipedia.org/wiki/Switch_access).

Accessibility is a very platform-specific thing. On different platforms, there are different screen readers that might have wildly different output.
Expand Down
5 changes: 5 additions & 0 deletions nodejs/docs/api/class-androiddevice.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,11 @@ await androidDevice.launchBrowser(options);
Specify user locale, for example `en-GB`, `de-DE`, etc. Locale will affect `navigator.language` value, `Accept-Language` request header value as well as number and date formatting rules. Defaults to the system default locale. Learn more about emulation in our [emulation guide](../emulation.mdx#locale--timezone).
- `logger` [Logger] *(optional)*<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="android-device-launch-browser-option-logger"/><a href="#android-device-launch-browser-option-logger" class="list-anchor">#</a>

:::warning[Deprecated]
The logs received by the logger are incomplete. Please use tracing instead.
:::


Logger sink for Playwright logging.
- `offline` [boolean] *(optional)*<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="android-device-launch-browser-option-offline"/><a href="#android-device-launch-browser-option-offline" class="list-anchor">#</a>

Expand Down
10 changes: 10 additions & 0 deletions nodejs/docs/api/class-browser.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,11 @@ If directly using this method to create [BrowserContext]s, it is best practice t
Specify user locale, for example `en-GB`, `de-DE`, etc. Locale will affect `navigator.language` value, `Accept-Language` request header value as well as number and date formatting rules. Defaults to the system default locale. Learn more about emulation in our [emulation guide](../emulation.mdx#locale--timezone).
- `logger` [Logger] *(optional)*<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-new-context-option-logger"/><a href="#browser-new-context-option-logger" class="list-anchor">#</a>

:::warning[Deprecated]
The logs received by the logger are incomplete. Please use tracing instead.
:::


Logger sink for Playwright logging.
- `offline` [boolean] *(optional)*<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-new-context-option-offline"/><a href="#browser-new-context-option-offline" class="list-anchor">#</a>

Expand Down Expand Up @@ -558,6 +563,11 @@ await browser.newPage(options);
Specify user locale, for example `en-GB`, `de-DE`, etc. Locale will affect `navigator.language` value, `Accept-Language` request header value as well as number and date formatting rules. Defaults to the system default locale. Learn more about emulation in our [emulation guide](../emulation.mdx#locale--timezone).
- `logger` [Logger] *(optional)*<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-new-page-option-logger"/><a href="#browser-new-page-option-logger" class="list-anchor">#</a>

:::warning[Deprecated]
The logs received by the logger are incomplete. Please use tracing instead.
:::


Logger sink for Playwright logging.
- `offline` [boolean] *(optional)*<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-new-page-option-offline"/><a href="#browser-new-page-option-offline" class="list-anchor">#</a>

Expand Down
30 changes: 29 additions & 1 deletion nodejs/docs/api/class-browsertype.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ await browserType.connect(wsEndpoint, options);
Additional HTTP headers to be sent with web socket connect request. Optional.
- `logger` [Logger] *(optional)* <font size="2">Added in: v1.14</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-type-connect-option-logger"/><a href="#browser-type-connect-option-logger" class="list-anchor">#</a>

:::warning[Deprecated]
The logs received by the logger are incomplete. Please use tracing instead.
:::


Logger sink for Playwright logging. Optional.
- `slowMo` [number] *(optional)* <font size="2">Added in: v1.10</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-type-connect-option-slow-mo"/><a href="#browser-type-connect-option-slow-mo" class="list-anchor">#</a>

Expand Down Expand Up @@ -112,12 +117,20 @@ const page = defaultContext.pages()[0];
- `options` [Object] *(optional)*
- `endpointURL` [string] *(optional)* <font size="2">Added in: v1.14</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-type-connect-over-cdp-option-endpoint-url"/><a href="#browser-type-connect-over-cdp-option-endpoint-url" class="list-anchor">#</a>

Deprecated, use the first argument instead. Optional.
:::warning[Deprecated]
Use the first argument instead.
:::

- `headers` [Object]&lt;[string], [string]&gt; *(optional)* <font size="2">Added in: v1.11</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-type-connect-over-cdp-option-headers"/><a href="#browser-type-connect-over-cdp-option-headers" class="list-anchor">#</a>

Additional HTTP headers to be sent with connect request. Optional.
- `logger` [Logger] *(optional)* <font size="2">Added in: v1.14</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-type-connect-over-cdp-option-logger"/><a href="#browser-type-connect-over-cdp-option-logger" class="list-anchor">#</a>

:::warning[Deprecated]
The logs received by the logger are incomplete. Please use tracing instead.
:::


Logger sink for Playwright logging. Optional.
- `slowMo` [number] *(optional)* <font size="2">Added in: v1.11</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-type-connect-over-cdp-option-slow-mo"/><a href="#browser-type-connect-over-cdp-option-slow-mo" class="list-anchor">#</a>

Expand Down Expand Up @@ -229,6 +242,11 @@ const browser = await chromium.launch({ // Or 'firefox' or 'webkit'.
If `true`, Playwright does not pass its own configurations args and only uses the ones from [args](/api/class-browsertype.mdx#browser-type-launch-option-args). If an array is given, then filters out the given default arguments. Dangerous option; use with care. Defaults to `false`.
- `logger` [Logger] *(optional)*<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-type-launch-option-logger"/><a href="#browser-type-launch-option-logger" class="list-anchor">#</a>

:::warning[Deprecated]
The logs received by the logger are incomplete. Please use tracing instead.
:::


Logger sink for Playwright logging.
- `proxy` [Object] *(optional)*<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-type-launch-option-proxy"/><a href="#browser-type-launch-option-proxy" class="list-anchor">#</a>
- `server` [string]
Expand Down Expand Up @@ -445,6 +463,11 @@ await browserType.launchPersistentContext(userDataDir, options);
Specify user locale, for example `en-GB`, `de-DE`, etc. Locale will affect `navigator.language` value, `Accept-Language` request header value as well as number and date formatting rules. Defaults to the system default locale. Learn more about emulation in our [emulation guide](../emulation.mdx#locale--timezone).
- `logger` [Logger] *(optional)*<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-type-launch-persistent-context-option-logger"/><a href="#browser-type-launch-persistent-context-option-logger" class="list-anchor">#</a>

:::warning[Deprecated]
The logs received by the logger are incomplete. Please use tracing instead.
:::


Logger sink for Playwright logging.
- `offline` [boolean] *(optional)*<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-type-launch-persistent-context-option-offline"/><a href="#browser-type-launch-persistent-context-option-offline" class="list-anchor">#</a>

Expand Down Expand Up @@ -658,6 +681,11 @@ const { chromium } = require('playwright'); // Or 'webkit' or 'firefox'.
If `true`, Playwright does not pass its own configurations args and only uses the ones from [args](/api/class-browsertype.mdx#browser-type-launch-server-option-args). If an array is given, then filters out the given default arguments. Dangerous option; use with care. Defaults to `false`.
- `logger` [Logger] *(optional)*<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-type-launch-server-option-logger"/><a href="#browser-type-launch-server-option-logger" class="list-anchor">#</a>

:::warning[Deprecated]
The logs received by the logger are incomplete. Please use tracing instead.
:::


Logger sink for Playwright logging.
- `port` [number] *(optional)*<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-type-launch-server-option-port"/><a href="#browser-type-launch-server-option-port" class="list-anchor">#</a>

Expand Down
5 changes: 5 additions & 0 deletions nodejs/docs/api/class-logger.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ import TabItem from '@theme/TabItem';
import HTMLCard from '@site/src/components/HTMLCard';


:::warning[Deprecated]
This class is deprecated. The logs pumped through this class are incomplete. Please use tracing instead.
:::


Playwright generates a lot of logs and they are accessible via the pluggable logger sink.

```js
Expand Down
5 changes: 5 additions & 0 deletions python/docs/api/class-accessibility.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ import TabItem from '@theme/TabItem';
import HTMLCard from '@site/src/components/HTMLCard';


:::warning[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 [switches](https://en.wikipedia.org/wiki/Switch_access).

Accessibility is a very platform-specific thing. On different platforms, there are different screen readers that might have wildly different output.
Expand Down
Loading