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
2 changes: 1 addition & 1 deletion dotnet/docs/api/class-apirequestcontext.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ await ApiRequestContext.StorageStateAsync(options);
- `options` `ApiRequestContextStorageStateOptions?` *(optional)*
- `IndexedDB` [bool]? *(optional)* <font size="2">Added in: v1.51</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="api-request-context-storage-state-option-indexed-db"/><a href="#api-request-context-storage-state-option-indexed-db" class="list-anchor">#</a>

Defaults to `true`. Set to `false` to omit IndexedDB from snapshot.
Set to `true` to include IndexedDB in the storage state snapshot.
- `Path` [string]? *(optional)*<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="api-request-context-storage-state-option-path"/><a href="#api-request-context-storage-state-option-path" class="list-anchor">#</a>

The file path to save the storage state to. If [Path](/api/class-apirequestcontext.mdx#api-request-context-storage-state-option-path) is a relative path, then it is resolved relative to current working directory. If no path is provided, storage state is still returned, but won't be saved to the disk.
Expand Down
13 changes: 7 additions & 6 deletions dotnet/docs/api/class-browsercontext.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -910,11 +910,6 @@ await BrowserContext.SetOfflineAsync(offline);

Returns storage state for this browser context, contains current cookies, local storage snapshot and IndexedDB snapshot.

:::note

IndexedDBs with typed arrays are currently not supported.
:::

**Usage**

```csharp
Expand All @@ -925,7 +920,13 @@ await BrowserContext.StorageStateAsync(options);
- `options` `BrowserContextStorageStateOptions?` *(optional)*
- `IndexedDB` [bool]? *(optional)* <font size="2">Added in: v1.51</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-context-storage-state-option-indexed-db"/><a href="#browser-context-storage-state-option-indexed-db" class="list-anchor">#</a>

Defaults to `true`. Set to `false` to omit IndexedDB from snapshot.
Set to `true` to include IndexedDB in the storage state snapshot. If your application uses IndexedDB to store authentication tokens, like Firebase Authentication, enable this.

:::note

IndexedDBs with typed arrays are currently not supported.
:::

- `Path` [string]? *(optional)*<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-context-storage-state-option-path"/><a href="#browser-context-storage-state-option-path" class="list-anchor">#</a>

The file path to save the storage state to. If [Path](/api/class-browsercontext.mdx#browser-context-storage-state-option-path) is a relative path, then it is resolved relative to current working directory. If no path is provided, storage state is still returned, but won't be saved to the disk.
Expand Down
26 changes: 3 additions & 23 deletions dotnet/docs/api/class-locator.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -840,6 +840,9 @@ await rowLocator
- `HasText|HasTextRegex` [string]? | [Regex]? *(optional)*<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="locator-filter-option-has-text"/><a href="#locator-filter-option-has-text" class="list-anchor">#</a>

Matches elements containing specified text somewhere inside, possibly in a child or a descendant element. When passed a [string], matching is case-insensitive and searches for a substring. For example, `"Playwright"` matches `<article><div>Playwright</div></article>`.
- `Visible` [bool]? *(optional)* <font size="2">Added in: v1.51</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="locator-filter-option-visible"/><a href="#locator-filter-option-visible" class="list-anchor">#</a>

Only matches visible or invisible elements.

**Returns**
- [Locator]<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="locator-filter-return"/><a href="#locator-filter-return" class="list-anchor">#</a>
Expand Down Expand Up @@ -2313,29 +2316,6 @@ When all steps combined have not finished during the specified [Timeout](/api/cl

---

### Visible {#locator-visible}

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

Returns a locator that only matches [visible](../actionability.mdx#visible) elements.

**Usage**

```csharp
Locator.Visible(options);
```

**Arguments**
- `options` `LocatorVisibleOptions?` *(optional)*
- `Visible` [bool]? *(optional)*<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="locator-visible-option-visible"/><a href="#locator-visible-option-visible" class="list-anchor">#</a>

Whether to match visible or invisible elements.

**Returns**
- [Locator]<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="locator-visible-return"/><a href="#locator-visible-return" class="list-anchor">#</a>

---

### WaitForAsync {#locator-wait-for}

<font size="2" style={{position: "relative", top: "-20px"}}>Added in: v1.16</font><x-search>locator.WaitForAsync</x-search>
Expand Down
2 changes: 1 addition & 1 deletion dotnet/docs/api/class-pageassertions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ await Expect(Page).ToHaveURLAsync(new Regex(".*checkout"));
**Arguments**
- `url` [string] | [Regex] | [Func]&lt;[string], bool&gt; <font size="2">Added in: v1.18</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="page-assertions-to-have-url-option-url"/><a href="#page-assertions-to-have-url-option-url" class="list-anchor">#</a>

Expected URL string, RegExp, or predicate receiving [URL] to match. When a [BaseURL](/api/class-browser.mdx#browser-new-context-option-base-url) via the context options was provided and the passed URL is a path, it gets merged via the [`new URL()`](https://developer.mozilla.org/en-US/docs/Web/API/URL/URL) constructor.
Expected URL string, RegExp, or predicate receiving [URL] to match. When [BaseURL](/api/class-browser.mdx#browser-new-context-option-base-url) is provided via the context options and the `url` argument is a string, the two values are merged via the [`new URL()`](https://developer.mozilla.org/en-US/docs/Web/API/URL/URL) constructor and used for the comparison against the current browser URL.
- `options` `PageAssertionsToHaveURLOptions?` *(optional)*
- `IgnoreCase` [bool]? *(optional)* <font size="2">Added in: v1.44</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="page-assertions-to-have-url-option-ignore-case"/><a href="#page-assertions-to-have-url-option-ignore-case" class="list-anchor">#</a>

Expand Down
2 changes: 1 addition & 1 deletion dotnet/docs/locators.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ Consider a page with two buttons, the first invisible and the second [visible](.
* This will only find a second button, because it is visible, and then click it.

```csharp
await page.Locator("button").Visible().ClickAsync();
await page.Locator("button").Filter(new() { Visible = true }).ClickAsync();
```

## Lists
Expand Down
2 changes: 1 addition & 1 deletion java/docs/api/class-apirequestcontext.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ APIRequestContext.storageState(options);
- `options` `ApiRequestContext.StorageStateOptions` *(optional)*
- `setIndexedDB` [boolean] *(optional)* <font size="2">Added in: v1.51</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="api-request-context-storage-state-option-indexed-db"/><a href="#api-request-context-storage-state-option-indexed-db" class="list-anchor">#</a>

Defaults to `true`. Set to `false` to omit IndexedDB from snapshot.
Set to `true` to include IndexedDB in the storage state snapshot.
- `setPath` [Path] *(optional)*<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="api-request-context-storage-state-option-path"/><a href="#api-request-context-storage-state-option-path" class="list-anchor">#</a>

The file path to save the storage state to. If [setPath](/api/class-apirequestcontext.mdx#api-request-context-storage-state-option-path) is a relative path, then it is resolved relative to current working directory. If no path is provided, storage state is still returned, but won't be saved to the disk.
Expand Down
13 changes: 7 additions & 6 deletions java/docs/api/class-browsercontext.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -807,11 +807,6 @@ BrowserContext.setOffline(offline);

Returns storage state for this browser context, contains current cookies, local storage snapshot and IndexedDB snapshot.

:::note

IndexedDBs with typed arrays are currently not supported.
:::

**Usage**

```java
Expand All @@ -823,7 +818,13 @@ BrowserContext.storageState(options);
- `options` `BrowserContext.StorageStateOptions` *(optional)*
- `setIndexedDB` [boolean] *(optional)* <font size="2">Added in: v1.51</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-context-storage-state-option-indexed-db"/><a href="#browser-context-storage-state-option-indexed-db" class="list-anchor">#</a>

Defaults to `true`. Set to `false` to omit IndexedDB from snapshot.
Set to `true` to include IndexedDB in the storage state snapshot. If your application uses IndexedDB to store authentication tokens, like Firebase Authentication, enable this.

:::note

IndexedDBs with typed arrays are currently not supported.
:::

- `setPath` [Path] *(optional)*<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-context-storage-state-option-path"/><a href="#browser-context-storage-state-option-path" class="list-anchor">#</a>

The file path to save the storage state to. If [setPath](/api/class-browsercontext.mdx#browser-context-storage-state-option-path) is a relative path, then it is resolved relative to current working directory. If no path is provided, storage state is still returned, but won't be saved to the disk.
Expand Down
27 changes: 3 additions & 24 deletions java/docs/api/class-locator.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -838,6 +838,9 @@ rowLocator
- `setHasText` [String] | [Pattern] *(optional)*<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="locator-filter-option-has-text"/><a href="#locator-filter-option-has-text" class="list-anchor">#</a>

Matches elements containing specified text somewhere inside, possibly in a child or a descendant element. When passed a [string], matching is case-insensitive and searches for a substring. For example, `"Playwright"` matches `<article><div>Playwright</div></article>`.
- `setVisible` [boolean] *(optional)* <font size="2">Added in: v1.51</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="locator-filter-option-visible"/><a href="#locator-filter-option-visible" class="list-anchor">#</a>

Only matches visible or invisible elements.

**Returns**
- [Locator]<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="locator-filter-return"/><a href="#locator-filter-return" class="list-anchor">#</a>
Expand Down Expand Up @@ -2313,30 +2316,6 @@ When all steps combined have not finished during the specified [setTimeout](/api

---

### visible {#locator-visible}

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

Returns a locator that only matches [visible](../actionability.mdx#visible) elements.

**Usage**

```java
Locator.visible();
Locator.visible(options);
```

**Arguments**
- `options` `Locator.VisibleOptions` *(optional)*
- `setVisible` [boolean] *(optional)*<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="locator-visible-option-visible"/><a href="#locator-visible-option-visible" class="list-anchor">#</a>

Whether to match visible or invisible elements.

**Returns**
- [Locator]<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="locator-visible-return"/><a href="#locator-visible-return" class="list-anchor">#</a>

---

### waitFor {#locator-wait-for}

<font size="2" style={{position: "relative", top: "-20px"}}>Added in: v1.16</font><x-search>locator.waitFor</x-search>
Expand Down
2 changes: 1 addition & 1 deletion java/docs/api/class-pageassertions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ assertThat(page).hasURL(".com");
**Arguments**
- `url` [String] | [Pattern] | [Predicate]&lt;[String]&gt; <font size="2">Added in: v1.18</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="page-assertions-to-have-url-option-url"/><a href="#page-assertions-to-have-url-option-url" class="list-anchor">#</a>

Expected URL string, RegExp, or predicate receiving [URL] to match. When a [setBaseURL](/api/class-browser.mdx#browser-new-context-option-base-url) via the context options was provided and the passed URL is a path, it gets merged via the [`new URL()`](https://developer.mozilla.org/en-US/docs/Web/API/URL/URL) constructor.
Expected URL string, RegExp, or predicate receiving [URL] to match. When [setBaseURL](/api/class-browser.mdx#browser-new-context-option-base-url) is provided via the context options and the `url` argument is a string, the two values are merged via the [`new URL()`](https://developer.mozilla.org/en-US/docs/Web/API/URL/URL) constructor and used for the comparison against the current browser URL.
- `options` `PageAssertions.HasURLOptions` *(optional)*
- `setIgnoreCase` [boolean] *(optional)* <font size="2">Added in: v1.44</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="page-assertions-to-have-url-option-ignore-case"/><a href="#page-assertions-to-have-url-option-ignore-case" class="list-anchor">#</a>

Expand Down
2 changes: 1 addition & 1 deletion java/docs/locators.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ Consider a page with two buttons, the first invisible and the second [visible](.
* This will only find a second button, because it is visible, and then click it.

```java
page.locator("button").visible().click();
page.locator("button").filter(new Locator.FilterOptions.setVisible(true)).click();
```

## Lists
Expand Down
55 changes: 2 additions & 53 deletions nodejs/docs/api/class-apirequest.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -150,59 +150,8 @@ await apiRequest.newContext(options);



- `indexedDB` [Array]&lt;[Object]&gt; *(optional)*
- `name` [string]

database name
- `version` [number]

database version
- `stores` [Array]&lt;[Object]&gt;
- `name` [string]


- `keyPath` [string] *(optional)*


- `keyPathArray` [Array]&lt;[string]&gt; *(optional)*


- `autoIncrement` [boolean]


- `indexes` [Array]&lt;[Object]&gt;
- `name` [string]


- `keyPath` [string] *(optional)*


- `keyPathArray` [Array]&lt;[string]&gt; *(optional)*


- `unique` [boolean]


- `multiEntry` [boolean]



- `records` [Array]&lt;[Object]&gt;
- `key` [Object] *(optional)*


- `keyEncoded` [Object] *(optional)*

if `key` is not JSON-serializable, this contains an encoded version that preserves types.
- `value` [Object] *(optional)*


- `valueEncoded` [Object] *(optional)*

if `value` is not JSON-serializable, this contains an encoded version that preserves types.



- `indexedDB` [Array]&lt;[unknown]&gt; *(optional)*

indexedDB to set for context


Expand Down
57 changes: 3 additions & 54 deletions nodejs/docs/api/class-apirequestcontext.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ await apiRequestContext.storageState(options);
- `options` [Object] *(optional)*
- `indexedDB` [boolean] *(optional)* <font size="2">Added in: v1.51</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="api-request-context-storage-state-option-indexed-db"/><a href="#api-request-context-storage-state-option-indexed-db" class="list-anchor">#</a>

Defaults to `true`. Set to `false` to omit IndexedDB from snapshot.
Set to `true` to include IndexedDB in the storage state snapshot.
- `path` [string] *(optional)*<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="api-request-context-storage-state-option-path"/><a href="#api-request-context-storage-state-option-path" class="list-anchor">#</a>

The file path to save the storage state to. If [path](/api/class-apirequestcontext.mdx#api-request-context-storage-state-option-path) is a relative path, then it is resolved relative to current working directory. If no path is provided, storage state is still returned, but won't be saved to the disk.
Expand Down Expand Up @@ -622,59 +622,8 @@ await apiRequestContext.storageState(options);



- `indexedDB` [Array]&lt;[Object]&gt;
- `name` [string]


- `version` [number]


- `stores` [Array]&lt;[Object]&gt;
- `name` [string]


- `keyPath` [string] *(optional)*


- `keyPathArray` [Array]&lt;[string]&gt; *(optional)*


- `autoIncrement` [boolean]


- `indexes` [Array]&lt;[Object]&gt;
- `name` [string]


- `keyPath` [string] *(optional)*


- `keyPathArray` [Array]&lt;[string]&gt; *(optional)*


- `unique` [boolean]


- `multiEntry` [boolean]



- `records` [Array]&lt;[Object]&gt;
- `key` [Object] *(optional)*


- `keyEncoded` [Object] *(optional)*

if `key` is not JSON-serializable, this contains an encoded version that preserves types.
- `value` [Object] *(optional)*


- `valueEncoded` [Object] *(optional)*

if `value` is not JSON-serializable, this contains an encoded version that preserves types.



- `indexedDB` [Array]&lt;[unknown]&gt;




Expand Down
Loading
Loading