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
44 changes: 0 additions & 44 deletions dotnet/docs/api/class-browsercontext.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -912,50 +912,6 @@ await BrowserContext.SetOfflineAsync(offline);

---

### SetStorageStateAsync {#browser-context-set-storage-state}

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

Resets storage state in the context by clearing cookies, cache and storage, and then applying the new storage state.

**Usage**

```csharp
await BrowserContext.SetStorageStateAsync(storageState);
```

**Arguments**
- `storageState` [string]<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-context-set-storage-state-option-storage-state"/><a href="#browser-context-set-storage-state-option-storage-state" class="list-anchor">#</a>

Populates context with given storage state. This option can be used to initialize context with logged-in information obtained via [BrowserContext.StorageStateAsync()](/api/class-browsercontext.mdx#browser-context-storage-state).

**Returns**
- [void]<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-context-set-storage-state-return"/><a href="#browser-context-set-storage-state-return" class="list-anchor">#</a>

---

### SetStorageStatePathAsync {#browser-context-set-storage-state-path}

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

Resets storage state in the context by clearing cookies, cache and storage, and then applying the new storage state from a file.

**Usage**

```csharp
await BrowserContext.SetStorageStatePathAsync(storageStatePath);
```

**Arguments**
- `storageStatePath` [string]<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-context-set-storage-state-path-option-storage-state-path"/><a href="#browser-context-set-storage-state-path-option-storage-state-path" class="list-anchor">#</a>

Populates context with given storage state. This option can be used to initialize context with logged-in information obtained via [BrowserContext.StorageStateAsync()](/api/class-browsercontext.mdx#browser-context-storage-state). Path to the file with saved storage state.

**Returns**
- [void]<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-context-set-storage-state-path-return"/><a href="#browser-context-set-storage-state-path-return" class="list-anchor">#</a>

---

### StorageStateAsync {#browser-context-storage-state}

<font size="2" style={{position: "relative", top: "-20px"}}>Added before v1.9</font><x-search>browserContext.StorageStateAsync</x-search>
Expand Down
17 changes: 0 additions & 17 deletions dotnet/docs/api/class-clock.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -190,23 +190,6 @@ await page.Clock.SetSystemTimeAsync("2020-02-02");
**Returns**
- [void]<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="clock-set-system-time-return"/><a href="#clock-set-system-time-return" class="list-anchor">#</a>

---

### UninstallAsync {#clock-uninstall}

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

Uninstall fake clock. Note that any currently open page will be still affected by the fake clock, until it navigates away to a new document.

**Usage**

```csharp
await Clock.UninstallAsync();
```

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


[Accessibility]: /api/class-accessibility.mdx "Accessibility"
[APIRequest]: /api/class-apirequest.mdx "APIRequest"
Expand Down
44 changes: 0 additions & 44 deletions java/docs/api/class-browsercontext.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -809,50 +809,6 @@ BrowserContext.setOffline(offline);

---

### setStorageState {#browser-context-set-storage-state}

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

Resets storage state in the context by clearing cookies, cache and storage, and then applying the new storage state.

**Usage**

```java
BrowserContext.setStorageState(storageState);
```

**Arguments**
- `storageState` [String]<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-context-set-storage-state-option-storage-state"/><a href="#browser-context-set-storage-state-option-storage-state" class="list-anchor">#</a>

Populates context with given storage state. This option can be used to initialize context with logged-in information obtained via [BrowserContext.storageState()](/api/class-browsercontext.mdx#browser-context-storage-state).

**Returns**
- [void]<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-context-set-storage-state-return"/><a href="#browser-context-set-storage-state-return" class="list-anchor">#</a>

---

### setStorageStatePath {#browser-context-set-storage-state-path}

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

Resets storage state in the context by clearing cookies, cache and storage, and then applying the new storage state from a file.

**Usage**

```java
BrowserContext.setStorageStatePath(storageStatePath);
```

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

Populates context with given storage state. This option can be used to initialize context with logged-in information obtained via [BrowserContext.storageState()](/api/class-browsercontext.mdx#browser-context-storage-state). Path to the file with saved storage state.

**Returns**
- [void]<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-context-set-storage-state-path-return"/><a href="#browser-context-set-storage-state-path-return" class="list-anchor">#</a>

---

### storageState {#browser-context-storage-state}

<font size="2" style={{position: "relative", top: "-20px"}}>Added before v1.9</font><x-search>browserContext.storageState</x-search>
Expand Down
17 changes: 0 additions & 17 deletions java/docs/api/class-clock.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -201,23 +201,6 @@ page.clock().setSystemTime("2020-02-02");
**Returns**
- [void]<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="clock-set-system-time-return"/><a href="#clock-set-system-time-return" class="list-anchor">#</a>

---

### uninstall {#clock-uninstall}

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

Uninstall fake clock. Note that any currently open page will be still affected by the fake clock, until it navigates away to a new document.

**Usage**

```java
Clock.uninstall();
```

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


[APIRequest]: /api/class-apirequest.mdx "APIRequest"
[APIRequestContext]: /api/class-apirequestcontext.mdx "APIRequestContext"
Expand Down
64 changes: 0 additions & 64 deletions nodejs/docs/api/class-browsercontext.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -851,70 +851,6 @@ await browserContext.setOffline(offline);

---

### setStorageState {#browser-context-set-storage-state}

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

Resets storage state in the context by clearing cookies, cache and storage, and then applying the new storage state.

**Usage**

```js
await browserContext.setStorageState(storageState);
```

**Arguments**
- `storageState` [string] | [Object]<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-context-set-storage-state-option-storage-state"/><a href="#browser-context-set-storage-state-option-storage-state" class="list-anchor">#</a>
- `cookies` [Array]&lt;[Object]&gt;
- `name` [string]


- `value` [string]


- `domain` [string]

Domain and path are required. For the cookie to apply to all subdomains as well, prefix domain with a dot, like this: ".example.com"
- `path` [string]

Domain and path are required
- `expires` [number]

Unix time in seconds.
- `httpOnly` [boolean]


- `secure` [boolean]


- `sameSite` "Strict" | "Lax" | "None"

sameSite flag

Cookies to set for context
- `origins` [Array]&lt;[Object]&gt;
- `origin` [string]


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


- `value` [string]


localStorage to set for context


Learn more about [storage state and auth](../auth.mdx).

Populates context with given storage state. This option can be used to initialize context with logged-in information obtained via [browserContext.storageState()](/api/class-browsercontext.mdx#browser-context-storage-state).

**Returns**
- [Promise]&lt;[void]&gt;<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-context-set-storage-state-return"/><a href="#browser-context-set-storage-state-return" class="list-anchor">#</a>

---

### storageState {#browser-context-storage-state}

<font size="2" style={{position: "relative", top: "-20px"}}>Added before v1.9</font><x-search>browserContext.storageState</x-search>
Expand Down
17 changes: 0 additions & 17 deletions nodejs/docs/api/class-clock.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -199,23 +199,6 @@ await page.clock.setSystemTime('2020-02-02');
**Returns**
- [Promise]&lt;[void]&gt;<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="clock-set-system-time-return"/><a href="#clock-set-system-time-return" class="list-anchor">#</a>

---

### uninstall {#clock-uninstall}

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

Uninstall fake clock. Note that any currently open page will be still affected by the fake clock, until it navigates away to a new document.

**Usage**

```js
await clock.uninstall();
```

**Returns**
- [Promise]&lt;[void]&gt;<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="clock-uninstall-return"/><a href="#clock-uninstall-return" class="list-anchor">#</a>


[Accessibility]: /api/class-accessibility.mdx "Accessibility"
[Android]: /api/class-android.mdx "Android"
Expand Down
14 changes: 0 additions & 14 deletions nodejs/docs/test-cli.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ npx playwright test --ui
| `-c <file>` or `--config <file>` | Configuration file, or a test directory with optional "playwright.config.&#123;m,c&#125;?&#123;js,ts&#125;". Defaults to `playwright.config.ts` or `playwright.config.js` in the current directory. |
| `--debug` | Run tests with Playwright Inspector. Shortcut for `PWDEBUG=1` environment variable and `--timeout=0 --max-failures=1 --headed --workers=1` options. |
| `--fail-on-flaky-tests` | Fail if any test is flagged as flaky (default: false). |
| `--filter` | Path to a [test filter file](#test-filter-file). |
| `--forbid-only` | Fail if `test.only` is called (default: false). Useful on CI. |
| `--fully-parallel` | Run all tests in parallel (default: false). |
| `--global-timeout <timeout>` | Maximum time this test suite can run in milliseconds (default: unlimited). |
Expand Down Expand Up @@ -118,19 +117,6 @@ npx playwright test --ui
| `--update-source-method [mode]` | Update snapshots with actual results. Possible values are "patch" (default), "3way" and "overwrite". "Patch" creates a unified diff file that can be used to update the source code later. "3way" generates merge conflict markers in source code. "Overwrite" overwrites the source code with the new snapshot values.|
| `-x` | Stop after the first failure. |

#### Test filter file

Option `--filter` allows to specify a json file to filter tests. It must contain an array property `titlePath`. For each test that should be run, `titlePath` contains a project name, relative path to the test file, all suite titles and the test title, similar to [testCase.titlePath()](/api/class-testcase.mdx#test-case-title-path).

```json title="filter.json"
{
"titlePath": [
["chromium", "path/to/example.spec.ts", "describe title", "test title"],
["firefox", "path/to/another.spec.ts", "top-level test title"]
]
}
```

### Show Report

Display HTML report from previous test run. [Read more about the HTML reporter](./test-reporters#html-reporter).
Expand Down
64 changes: 0 additions & 64 deletions python/docs/api/class-browsercontext.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -1180,70 +1180,6 @@ browser_context.set_offline(offline)

---

### set_storage_state {#browser-context-set-storage-state}

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

Resets storage state in the context by clearing cookies, cache and storage, and then applying the new storage state.

**Usage**

```python
browser_context.set_storage_state(storage_state)
```

**Arguments**
- `storage_state` [Union]\[[str], [pathlib.Path]\] | [Dict]<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-context-set-storage-state-option-storage-state"/><a href="#browser-context-set-storage-state-option-storage-state" class="list-anchor">#</a>
- `cookies` [List]\[[Dict]\]
- `name` [str]


- `value` [str]


- `domain` [str]

Domain and path are required. For the cookie to apply to all subdomains as well, prefix domain with a dot, like this: ".example.com"
- `path` [str]

Domain and path are required
- `expires` [float]

Unix time in seconds.
- `httpOnly` [bool]


- `secure` [bool]


- `sameSite` "Strict" | "Lax" | "None"

sameSite flag

Cookies to set for context
- `origins` [List]\[[Dict]\]
- `origin` [str]


- `localStorage` [List]\[[Dict]\]
- `name` [str]


- `value` [str]


localStorage to set for context


Learn more about [storage state and auth](../auth.mdx).

Populates context with given storage state. This option can be used to initialize context with logged-in information obtained via [browser_context.storage_state()](/api/class-browsercontext.mdx#browser-context-storage-state).

**Returns**
- [NoneType]<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-context-set-storage-state-return"/><a href="#browser-context-set-storage-state-return" class="list-anchor">#</a>

---

### storage_state {#browser-context-storage-state}

<font size="2" style={{position: "relative", top: "-20px"}}>Added before v1.9</font><x-search>browserContext.storage_state</x-search>
Expand Down
17 changes: 0 additions & 17 deletions python/docs/api/class-clock.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -329,23 +329,6 @@ await page.clock.set_system_time("2020-02-02")
**Returns**
- [NoneType]<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="clock-set-system-time-return"/><a href="#clock-set-system-time-return" class="list-anchor">#</a>

---

### uninstall {#clock-uninstall}

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

Uninstall fake clock. Note that any currently open page will be still affected by the fake clock, until it navigates away to a new document.

**Usage**

```python
clock.uninstall()
```

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


[Accessibility]: /api/class-accessibility.mdx "Accessibility"
[APIRequest]: /api/class-apirequest.mdx "APIRequest"
Expand Down
Loading