diff --git a/dotnet/docs/api/class-accessibility.mdx b/dotnet/docs/api/class-accessibility.mdx index e7584bc3527..be54f8d7c9e 100644 --- a/dotnet/docs/api/class-accessibility.mdx +++ b/dotnet/docs/api/class-accessibility.mdx @@ -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. diff --git a/nodejs/docs/api/class-accessibility.mdx b/nodejs/docs/api/class-accessibility.mdx index 262d3905dd5..14ce9846c70 100644 --- a/nodejs/docs/api/class-accessibility.mdx +++ b/nodejs/docs/api/class-accessibility.mdx @@ -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. diff --git a/nodejs/docs/api/class-androiddevice.mdx b/nodejs/docs/api/class-androiddevice.mdx index b5907d300d4..5e628dfc641 100644 --- a/nodejs/docs/api/class-androiddevice.mdx +++ b/nodejs/docs/api/class-androiddevice.mdx @@ -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)*# + :::warning[Deprecated] + The logs received by the logger are incomplete. Please use tracing instead. + ::: + + Logger sink for Playwright logging. - `offline` [boolean] *(optional)*# diff --git a/nodejs/docs/api/class-browser.mdx b/nodejs/docs/api/class-browser.mdx index 80eb162fe7b..d75231b2d57 100644 --- a/nodejs/docs/api/class-browser.mdx +++ b/nodejs/docs/api/class-browser.mdx @@ -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)*# + :::warning[Deprecated] + The logs received by the logger are incomplete. Please use tracing instead. + ::: + + Logger sink for Playwright logging. - `offline` [boolean] *(optional)*# @@ -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)*# + :::warning[Deprecated] + The logs received by the logger are incomplete. Please use tracing instead. + ::: + + Logger sink for Playwright logging. - `offline` [boolean] *(optional)*# diff --git a/nodejs/docs/api/class-browsertype.mdx b/nodejs/docs/api/class-browsertype.mdx index 517f2baa407..50c2136ea56 100644 --- a/nodejs/docs/api/class-browsertype.mdx +++ b/nodejs/docs/api/class-browsertype.mdx @@ -67,6 +67,11 @@ await browserType.connect(wsEndpoint, options); Additional HTTP headers to be sent with web socket connect request. Optional. - `logger` [Logger] *(optional)* Added in: v1.14# + :::warning[Deprecated] + The logs received by the logger are incomplete. Please use tracing instead. + ::: + + Logger sink for Playwright logging. Optional. - `slowMo` [number] *(optional)* Added in: v1.10# @@ -112,12 +117,20 @@ const page = defaultContext.pages()[0]; - `options` [Object] *(optional)* - `endpointURL` [string] *(optional)* Added in: v1.14# - Deprecated, use the first argument instead. Optional. + :::warning[Deprecated] + Use the first argument instead. + ::: + - `headers` [Object]<[string], [string]> *(optional)* Added in: v1.11# Additional HTTP headers to be sent with connect request. Optional. - `logger` [Logger] *(optional)* Added in: v1.14# + :::warning[Deprecated] + The logs received by the logger are incomplete. Please use tracing instead. + ::: + + Logger sink for Playwright logging. Optional. - `slowMo` [number] *(optional)* Added in: v1.11# @@ -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)*# + :::warning[Deprecated] + The logs received by the logger are incomplete. Please use tracing instead. + ::: + + Logger sink for Playwright logging. - `proxy` [Object] *(optional)*# - `server` [string] @@ -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)*# + :::warning[Deprecated] + The logs received by the logger are incomplete. Please use tracing instead. + ::: + + Logger sink for Playwright logging. - `offline` [boolean] *(optional)*# @@ -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)*# + :::warning[Deprecated] + The logs received by the logger are incomplete. Please use tracing instead. + ::: + + Logger sink for Playwright logging. - `port` [number] *(optional)*# diff --git a/nodejs/docs/api/class-logger.mdx b/nodejs/docs/api/class-logger.mdx index fcd4d46896d..c549adb1ce6 100644 --- a/nodejs/docs/api/class-logger.mdx +++ b/nodejs/docs/api/class-logger.mdx @@ -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 diff --git a/python/docs/api/class-accessibility.mdx b/python/docs/api/class-accessibility.mdx index 2715c1a8178..99816e181ec 100644 --- a/python/docs/api/class-accessibility.mdx +++ b/python/docs/api/class-accessibility.mdx @@ -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.