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
4 changes: 2 additions & 2 deletions dotnet/docs/api/class-browsertype.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,9 @@ var page = defaultContext.Pages[0];
- `IsLocal` [bool]? *(optional)* <font size="2">Added in: v1.58</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-type-connect-over-cdp-option-is-local"/><a href="#browser-type-connect-over-cdp-option-is-local" class="list-anchor">#</a>

Tells Playwright that it runs on the same host as the CDP server. It will enable certain optimizations that rely upon the file system being the same between Playwright and the Browser.
- `NoDefaults` [bool]? *(optional)* <font size="2">Added in: v1.53</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-type-connect-over-cdp-option-no-defaults"/><a href="#browser-type-connect-over-cdp-option-no-defaults" class="list-anchor">#</a>
- `NoDefaults` [bool]? *(optional)* <font size="2">Added in: v1.60</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-type-connect-over-cdp-option-no-defaults"/><a href="#browser-type-connect-over-cdp-option-no-defaults" class="list-anchor">#</a>

When true, Playwright will not send default overrides to the browser on the default context. This includes `Browser.setDownloadBehavior`, `Emulation.setFocusEmulationEnabled`, and `Emulation.setEmulatedMedia`. Useful when attaching to a user's daily-driver browser where these overrides would interfere with existing browser state. New contexts created via [browser.newContext([options])](https://playwright.dev/docs/api/class-browser#browser-new-context) are not affected. Defaults to `false`.
When true, Playwright will not apply its default overrides to the existing default browser context. Specifically, [AcceptDownloads](/api/class-browser.mdx#browser-new-context-option-accept-downloads) is left at the browser's setting, focus emulation is not enabled, and media emulation options (such as [ColorScheme](/api/class-browser.mdx#browser-new-context-option-color-scheme), [ReducedMotion](/api/class-browser.mdx#browser-new-context-option-reduced-motion), [ForcedColors](/api/class-browser.mdx#browser-new-context-option-forced-colors), and [Contrast](/api/class-browser.mdx#browser-new-context-option-contrast)) are not applied. Useful when attaching to a user's daily-driver browser where these overrides would interfere with existing browser state. New contexts created via [Browser.NewContextAsync()](/api/class-browser.mdx#browser-new-context) are not affected. Defaults to `false`.
- `SlowMo` [float]? *(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>

Slows down Playwright operations by the specified amount of milliseconds. Useful so that you can see what is going on. Defaults to 0.
Expand Down
4 changes: 2 additions & 2 deletions dotnet/docs/api/class-locator.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ await page.GetByRole(AriaRole.Link).AriaSnapshotAsync();
- `options` `LocatorAriaSnapshotOptions?` *(optional)*
- `Boxes` [bool]? *(optional)* <font size="2">Added in: v1.60</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="locator-aria-snapshot-option-boxes"/><a href="#locator-aria-snapshot-option-boxes" class="list-anchor">#</a>

When `true`, appends each element's bounding box as `[box=x,y,width,height]` to the snapshot. Defaults to `false`.
When `true`, appends each element's bounding box as `[box=x,y,width,height]` to the snapshot. Coordinates are relative to the viewport, in CSS pixels, as returned by [`Element.getBoundingClientRect()`](https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoundingClientRect). Defaults to `false`.
- `Depth` [int]? *(optional)* <font size="2">Added in: v1.59</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="locator-aria-snapshot-option-depth"/><a href="#locator-aria-snapshot-option-depth" class="list-anchor">#</a>

When specified, limits the depth of the snapshot.
Expand Down Expand Up @@ -1406,7 +1406,7 @@ await Expect(Page.GetByTitle("Issues count")).toHaveText("25 issues");

<font size="2" style={{position: "relative", top: "-20px"}}>Added in: v1.60</font><x-search>locator.HideHighlightAsync</x-search>

Hide element highlight added with Highlight the corresponding element(s) on the screen. Useful for debugging, don't commit the code that uses [Locator.HighlightAsync()](/api/class-locator.mdx#locator-highlight).
Hides the element highlight previously added by [Locator.HighlightAsync()](/api/class-locator.mdx#locator-highlight).

**Usage**

Expand Down
2 changes: 1 addition & 1 deletion dotnet/docs/api/class-page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ await Page.AriaSnapshotAsync(options);
- `options` `PageAriaSnapshotOptions?` *(optional)*
- `Boxes` [bool]? *(optional)* <font size="2">Added in: v1.60</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="page-aria-snapshot-option-boxes"/><a href="#page-aria-snapshot-option-boxes" class="list-anchor">#</a>

When `true`, appends each element's bounding box as `[box=x,y,width,height]` to the snapshot. Defaults to `false`.
When `true`, appends each element's bounding box as `[box=x,y,width,height]` to the snapshot. Coordinates are relative to the viewport, in CSS pixels, as returned by [`Element.getBoundingClientRect()`](https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoundingClientRect). Defaults to `false`.
- `Depth` [int]? *(optional)*<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="page-aria-snapshot-option-depth"/><a href="#page-aria-snapshot-option-depth" class="list-anchor">#</a>

When specified, limits the depth of the snapshot.
Expand Down
8 changes: 7 additions & 1 deletion dotnet/docs/api/class-screencast.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,14 @@ Starts the screencast. When [Path](/api/class-screencast.mdx#screencast-start-op
- `Data` [byte]&#91;&#93;

JPEG-encoded frame data.
- `ViewportWidth` [int]

Width of the page viewport at the time the frame was captured.
- `ViewportHeight` [int]

Height of the page viewport at the time the frame was captured.

Callback that receives JPEG-encoded frame data.
Callback that receives JPEG-encoded frame data along with the page viewport size at the time of capture.
- `Path` [string]? *(optional)*<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="screencast-start-option-path"/><a href="#screencast-start-option-path" class="list-anchor">#</a>

Path where the video should be saved when the screencast is stopped. When provided, video recording is started.
Expand Down
13 changes: 10 additions & 3 deletions dotnet/docs/api/class-weberror.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,23 @@ WebError.Error

<font size="2" style={{position: "relative", top: "-20px"}}>Added in: v1.60</font><x-search>webError.Location</x-search>

URL of the resource followed by 0-based line and column numbers in the resource formatted as `URL:line:column`.

**Usage**

```csharp
WebError.Location
```

**Returns**
- [string]<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="web-error-location-return"/><a href="#web-error-location-return" class="list-anchor">#</a>
- Location<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="web-error-location-return"/><a href="#web-error-location-return" class="list-anchor">#</a>
- `url` [string]

URL of the resource.
- `line` [int]

0-based line number in the resource.
- `column` [int]

0-based column number in the resource.

---

Expand Down
4 changes: 2 additions & 2 deletions java/docs/api/class-browsertype.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,9 @@ Page page = defaultContext.pages().get(0);
- `setIsLocal` [boolean] *(optional)* <font size="2">Added in: v1.58</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-type-connect-over-cdp-option-is-local"/><a href="#browser-type-connect-over-cdp-option-is-local" class="list-anchor">#</a>

Tells Playwright that it runs on the same host as the CDP server. It will enable certain optimizations that rely upon the file system being the same between Playwright and the Browser.
- `setNoDefaults` [boolean] *(optional)* <font size="2">Added in: v1.53</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-type-connect-over-cdp-option-no-defaults"/><a href="#browser-type-connect-over-cdp-option-no-defaults" class="list-anchor">#</a>
- `setNoDefaults` [boolean] *(optional)* <font size="2">Added in: v1.60</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-type-connect-over-cdp-option-no-defaults"/><a href="#browser-type-connect-over-cdp-option-no-defaults" class="list-anchor">#</a>

When true, Playwright will not send default overrides to the browser on the default context. This includes `Browser.setDownloadBehavior`, `Emulation.setFocusEmulationEnabled`, and `Emulation.setEmulatedMedia`. Useful when attaching to a user's daily-driver browser where these overrides would interfere with existing browser state. New contexts created via [browser.newContext([options])](https://playwright.dev/docs/api/class-browser#browser-new-context) are not affected. Defaults to `false`.
When true, Playwright will not apply its default overrides to the existing default browser context. Specifically, [setAcceptDownloads](/api/class-browser.mdx#browser-new-context-option-accept-downloads) is left at the browser's setting, focus emulation is not enabled, and media emulation options (such as [setColorScheme](/api/class-browser.mdx#browser-new-context-option-color-scheme), [setReducedMotion](/api/class-browser.mdx#browser-new-context-option-reduced-motion), [setForcedColors](/api/class-browser.mdx#browser-new-context-option-forced-colors), and [setContrast](/api/class-browser.mdx#browser-new-context-option-contrast)) are not applied. Useful when attaching to a user's daily-driver browser where these overrides would interfere with existing browser state. New contexts created via [Browser.newContext()](/api/class-browser.mdx#browser-new-context) are not affected. Defaults to `false`.
- `setSlowMo` [double] *(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>

Slows down Playwright operations by the specified amount of milliseconds. Useful so that you can see what is going on. Defaults to 0.
Expand Down
4 changes: 2 additions & 2 deletions java/docs/api/class-locator.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ page.getByRole(AriaRole.LINK).ariaSnapshot();
- `options` `Locator.AriaSnapshotOptions` *(optional)*
- `setBoxes` [boolean] *(optional)* <font size="2">Added in: v1.60</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="locator-aria-snapshot-option-boxes"/><a href="#locator-aria-snapshot-option-boxes" class="list-anchor">#</a>

When `true`, appends each element's bounding box as `[box=x,y,width,height]` to the snapshot. Defaults to `false`.
When `true`, appends each element's bounding box as `[box=x,y,width,height]` to the snapshot. Coordinates are relative to the viewport, in CSS pixels, as returned by [`Element.getBoundingClientRect()`](https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoundingClientRect). Defaults to `false`.
- `setDepth` [int] *(optional)* <font size="2">Added in: v1.59</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="locator-aria-snapshot-option-depth"/><a href="#locator-aria-snapshot-option-depth" class="list-anchor">#</a>

When specified, limits the depth of the snapshot.
Expand Down Expand Up @@ -1406,7 +1406,7 @@ assertThat(page.getByTitle("Issues count")).hasText("25 issues");

<font size="2" style={{position: "relative", top: "-20px"}}>Added in: v1.60</font><x-search>locator.hideHighlight</x-search>

Hide element highlight added with Highlight the corresponding element(s) on the screen. Useful for debugging, don't commit the code that uses [Locator.highlight()](/api/class-locator.mdx#locator-highlight).
Hides the element highlight previously added by [Locator.highlight()](/api/class-locator.mdx#locator-highlight).

**Usage**

Expand Down
2 changes: 1 addition & 1 deletion java/docs/api/class-page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ Page.ariaSnapshot(options);
- `options` `Page.AriaSnapshotOptions` *(optional)*
- `setBoxes` [boolean] *(optional)* <font size="2">Added in: v1.60</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="page-aria-snapshot-option-boxes"/><a href="#page-aria-snapshot-option-boxes" class="list-anchor">#</a>

When `true`, appends each element's bounding box as `[box=x,y,width,height]` to the snapshot. Defaults to `false`.
When `true`, appends each element's bounding box as `[box=x,y,width,height]` to the snapshot. Coordinates are relative to the viewport, in CSS pixels, as returned by [`Element.getBoundingClientRect()`](https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoundingClientRect). Defaults to `false`.
- `setDepth` [int] *(optional)*<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="page-aria-snapshot-option-depth"/><a href="#page-aria-snapshot-option-depth" class="list-anchor">#</a>

When specified, limits the depth of the snapshot.
Expand Down
8 changes: 7 additions & 1 deletion java/docs/api/class-screencast.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,14 @@ Starts the screencast. When [setPath](/api/class-screencast.mdx#screencast-start
- `setData` [byte&#91;&#93;]

JPEG-encoded frame data.
- `setViewportWidth` [int]

Width of the page viewport at the time the frame was captured.
- `setViewportHeight` [int]

Height of the page viewport at the time the frame was captured.

Callback that receives JPEG-encoded frame data.
Callback that receives JPEG-encoded frame data along with the page viewport size at the time of capture.
- `setPath` [Path] *(optional)*<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="screencast-start-option-path"/><a href="#screencast-start-option-path" class="list-anchor">#</a>

Path where the video should be saved when the screencast is stopped. When provided, video recording is started.
Expand Down
13 changes: 10 additions & 3 deletions java/docs/api/class-weberror.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,23 @@ WebError.error();

<font size="2" style={{position: "relative", top: "-20px"}}>Added in: v1.60</font><x-search>webError.location</x-search>

URL of the resource followed by 0-based line and column numbers in the resource formatted as `URL:line:column`.

**Usage**

```java
WebError.location();
```

**Returns**
- [String]<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="web-error-location-return"/><a href="#web-error-location-return" class="list-anchor">#</a>
- Location<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="web-error-location-return"/><a href="#web-error-location-return" class="list-anchor">#</a>
- `url` [String]

URL of the resource.
- `line` [int]

0-based line number in the resource.
- `column` [int]

0-based column number in the resource.

---

Expand Down
10 changes: 5 additions & 5 deletions nodejs/docs/accessibility-testing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -333,11 +333,6 @@ test('example using custom fixture', async ({ page, makeAxeBuilder }) => {
```


[Android]: /api/class-android.mdx "Android"
[AndroidDevice]: /api/class-androiddevice.mdx "AndroidDevice"
[AndroidInput]: /api/class-androidinput.mdx "AndroidInput"
[AndroidSocket]: /api/class-androidsocket.mdx "AndroidSocket"
[AndroidWebView]: /api/class-androidwebview.mdx "AndroidWebView"
[APIRequest]: /api/class-apirequest.mdx "APIRequest"
[APIRequestContext]: /api/class-apirequestcontext.mdx "APIRequestContext"
[APIResponse]: /api/class-apiresponse.mdx "APIResponse"
Expand Down Expand Up @@ -385,6 +380,11 @@ test('example using custom fixture', async ({ page, makeAxeBuilder }) => {
[Worker]: /api/class-worker.mdx "Worker"
[Electron]: /api/class-electron.mdx "Electron"
[ElectronApplication]: /api/class-electronapplication.mdx "ElectronApplication"
[Android]: /api/class-android.mdx "Android"
[AndroidDevice]: /api/class-androiddevice.mdx "AndroidDevice"
[AndroidInput]: /api/class-androidinput.mdx "AndroidInput"
[AndroidSocket]: /api/class-androidsocket.mdx "AndroidSocket"
[AndroidWebView]: /api/class-androidwebview.mdx "AndroidWebView"
[Fixtures]: /api/class-fixtures.mdx "Fixtures"
[FullConfig]: /api/class-fullconfig.mdx "FullConfig"
[FullProject]: /api/class-fullproject.mdx "FullProject"
Expand Down
10 changes: 5 additions & 5 deletions nodejs/docs/actionability.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,6 @@ For example, consider a scenario where Playwright will click `Sign Up` button re
[Receives Events]: #receives-events "Receives Events"


[Android]: /api/class-android.mdx "Android"
[AndroidDevice]: /api/class-androiddevice.mdx "AndroidDevice"
[AndroidInput]: /api/class-androidinput.mdx "AndroidInput"
[AndroidSocket]: /api/class-androidsocket.mdx "AndroidSocket"
[AndroidWebView]: /api/class-androidwebview.mdx "AndroidWebView"
[APIRequest]: /api/class-apirequest.mdx "APIRequest"
[APIRequestContext]: /api/class-apirequestcontext.mdx "APIRequestContext"
[APIResponse]: /api/class-apiresponse.mdx "APIResponse"
Expand Down Expand Up @@ -175,6 +170,11 @@ For example, consider a scenario where Playwright will click `Sign Up` button re
[Worker]: /api/class-worker.mdx "Worker"
[Electron]: /api/class-electron.mdx "Electron"
[ElectronApplication]: /api/class-electronapplication.mdx "ElectronApplication"
[Android]: /api/class-android.mdx "Android"
[AndroidDevice]: /api/class-androiddevice.mdx "AndroidDevice"
[AndroidInput]: /api/class-androidinput.mdx "AndroidInput"
[AndroidSocket]: /api/class-androidsocket.mdx "AndroidSocket"
[AndroidWebView]: /api/class-androidwebview.mdx "AndroidWebView"
[Fixtures]: /api/class-fixtures.mdx "Fixtures"
[FullConfig]: /api/class-fullconfig.mdx "FullConfig"
[FullProject]: /api/class-fullproject.mdx "FullProject"
Expand Down
10 changes: 5 additions & 5 deletions nodejs/docs/api-testing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -374,11 +374,6 @@ test('global context request has isolated cookie storage', async ({
```


[Android]: /api/class-android.mdx "Android"
[AndroidDevice]: /api/class-androiddevice.mdx "AndroidDevice"
[AndroidInput]: /api/class-androidinput.mdx "AndroidInput"
[AndroidSocket]: /api/class-androidsocket.mdx "AndroidSocket"
[AndroidWebView]: /api/class-androidwebview.mdx "AndroidWebView"
[APIRequest]: /api/class-apirequest.mdx "APIRequest"
[APIRequestContext]: /api/class-apirequestcontext.mdx "APIRequestContext"
[APIResponse]: /api/class-apiresponse.mdx "APIResponse"
Expand Down Expand Up @@ -426,6 +421,11 @@ test('global context request has isolated cookie storage', async ({
[Worker]: /api/class-worker.mdx "Worker"
[Electron]: /api/class-electron.mdx "Electron"
[ElectronApplication]: /api/class-electronapplication.mdx "ElectronApplication"
[Android]: /api/class-android.mdx "Android"
[AndroidDevice]: /api/class-androiddevice.mdx "AndroidDevice"
[AndroidInput]: /api/class-androidinput.mdx "AndroidInput"
[AndroidSocket]: /api/class-androidsocket.mdx "AndroidSocket"
[AndroidWebView]: /api/class-androidwebview.mdx "AndroidWebView"
[Fixtures]: /api/class-fixtures.mdx "Fixtures"
[FullConfig]: /api/class-fullconfig.mdx "FullConfig"
[FullProject]: /api/class-fullproject.mdx "FullProject"
Expand Down
10 changes: 5 additions & 5 deletions nodejs/docs/api/class-android.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -244,11 +244,6 @@ android.setDefaultTimeout(timeout);
Maximum time in milliseconds


[Android]: /api/class-android.mdx "Android"
[AndroidDevice]: /api/class-androiddevice.mdx "AndroidDevice"
[AndroidInput]: /api/class-androidinput.mdx "AndroidInput"
[AndroidSocket]: /api/class-androidsocket.mdx "AndroidSocket"
[AndroidWebView]: /api/class-androidwebview.mdx "AndroidWebView"
[APIRequest]: /api/class-apirequest.mdx "APIRequest"
[APIRequestContext]: /api/class-apirequestcontext.mdx "APIRequestContext"
[APIResponse]: /api/class-apiresponse.mdx "APIResponse"
Expand Down Expand Up @@ -296,6 +291,11 @@ android.setDefaultTimeout(timeout);
[Worker]: /api/class-worker.mdx "Worker"
[Electron]: /api/class-electron.mdx "Electron"
[ElectronApplication]: /api/class-electronapplication.mdx "ElectronApplication"
[Android]: /api/class-android.mdx "Android"
[AndroidDevice]: /api/class-androiddevice.mdx "AndroidDevice"
[AndroidInput]: /api/class-androidinput.mdx "AndroidInput"
[AndroidSocket]: /api/class-androidsocket.mdx "AndroidSocket"
[AndroidWebView]: /api/class-androidwebview.mdx "AndroidWebView"
[Fixtures]: /api/class-fixtures.mdx "Fixtures"
[FullConfig]: /api/class-fullconfig.mdx "FullConfig"
[FullProject]: /api/class-fullproject.mdx "FullProject"
Expand Down
Loading
Loading