From dff35afbc6f33e9c3e8dccacc87ab1ca85183144 Mon Sep 17 00:00:00 2001 From: "microsoft-playwright-automation[bot]" <203992400+microsoft-playwright-automation[bot]@users.noreply.github.com> Date: Thu, 14 Aug 2025 10:09:38 +0000 Subject: [PATCH] feat(roll): roll to ToT Playwright (14-08-25) --- dotnet/docs/api/class-browsercontext.mdx | 44 ---------------- dotnet/docs/api/class-clock.mdx | 17 ------- java/docs/api/class-browsercontext.mdx | 44 ---------------- java/docs/api/class-clock.mdx | 17 ------- nodejs/docs/api/class-browsercontext.mdx | 64 ------------------------ nodejs/docs/api/class-clock.mdx | 17 ------- nodejs/docs/test-cli.mdx | 14 ------ python/docs/api/class-browsercontext.mdx | 64 ------------------------ python/docs/api/class-clock.mdx | 17 ------- 9 files changed, 298 deletions(-) diff --git a/dotnet/docs/api/class-browsercontext.mdx b/dotnet/docs/api/class-browsercontext.mdx index e56d6eed29b..774212a731c 100644 --- a/dotnet/docs/api/class-browsercontext.mdx +++ b/dotnet/docs/api/class-browsercontext.mdx @@ -912,50 +912,6 @@ await BrowserContext.SetOfflineAsync(offline); --- -### SetStorageStateAsync {#browser-context-set-storage-state} - -Added in: v1.55browserContext.SetStorageStateAsync - -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]# - - 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]# - ---- - -### SetStorageStatePathAsync {#browser-context-set-storage-state-path} - -Added in: v1.55browserContext.SetStorageStatePathAsync - -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]# - - 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]# - ---- - ### StorageStateAsync {#browser-context-storage-state} Added before v1.9browserContext.StorageStateAsync diff --git a/dotnet/docs/api/class-clock.mdx b/dotnet/docs/api/class-clock.mdx index df9d7e370b7..713c7a0a2bf 100644 --- a/dotnet/docs/api/class-clock.mdx +++ b/dotnet/docs/api/class-clock.mdx @@ -190,23 +190,6 @@ await page.Clock.SetSystemTimeAsync("2020-02-02"); **Returns** - [void]# ---- - -### UninstallAsync {#clock-uninstall} - -Added in: v1.55clock.UninstallAsync - -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]# - [Accessibility]: /api/class-accessibility.mdx "Accessibility" [APIRequest]: /api/class-apirequest.mdx "APIRequest" diff --git a/java/docs/api/class-browsercontext.mdx b/java/docs/api/class-browsercontext.mdx index e29cf340648..a6511761c8c 100644 --- a/java/docs/api/class-browsercontext.mdx +++ b/java/docs/api/class-browsercontext.mdx @@ -809,50 +809,6 @@ BrowserContext.setOffline(offline); --- -### setStorageState {#browser-context-set-storage-state} - -Added in: v1.55browserContext.setStorageState - -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]# - - 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]# - ---- - -### setStorageStatePath {#browser-context-set-storage-state-path} - -Added in: v1.55browserContext.setStorageStatePath - -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]# - - 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]# - ---- - ### storageState {#browser-context-storage-state} Added before v1.9browserContext.storageState diff --git a/java/docs/api/class-clock.mdx b/java/docs/api/class-clock.mdx index 9cd2813310d..e201c8a5a47 100644 --- a/java/docs/api/class-clock.mdx +++ b/java/docs/api/class-clock.mdx @@ -201,23 +201,6 @@ page.clock().setSystemTime("2020-02-02"); **Returns** - [void]# ---- - -### uninstall {#clock-uninstall} - -Added in: v1.55clock.uninstall - -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]# - [APIRequest]: /api/class-apirequest.mdx "APIRequest" [APIRequestContext]: /api/class-apirequestcontext.mdx "APIRequestContext" diff --git a/nodejs/docs/api/class-browsercontext.mdx b/nodejs/docs/api/class-browsercontext.mdx index 6162ec42bd7..9e0ef6e2fe9 100644 --- a/nodejs/docs/api/class-browsercontext.mdx +++ b/nodejs/docs/api/class-browsercontext.mdx @@ -851,70 +851,6 @@ await browserContext.setOffline(offline); --- -### setStorageState {#browser-context-set-storage-state} - -Added in: v1.55browserContext.setStorageState - -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]# - - `cookies` [Array]<[Object]> - - `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]<[Object]> - - `origin` [string] - - - - `localStorage` [Array]<[Object]> - - `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]<[void]># - ---- - ### storageState {#browser-context-storage-state} Added before v1.9browserContext.storageState diff --git a/nodejs/docs/api/class-clock.mdx b/nodejs/docs/api/class-clock.mdx index c4bfca040cd..74ae60ab1c0 100644 --- a/nodejs/docs/api/class-clock.mdx +++ b/nodejs/docs/api/class-clock.mdx @@ -199,23 +199,6 @@ await page.clock.setSystemTime('2020-02-02'); **Returns** - [Promise]<[void]># ---- - -### uninstall {#clock-uninstall} - -Added in: v1.55clock.uninstall - -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]<[void]># - [Accessibility]: /api/class-accessibility.mdx "Accessibility" [Android]: /api/class-android.mdx "Android" diff --git a/nodejs/docs/test-cli.mdx b/nodejs/docs/test-cli.mdx index 6a03a947c8a..65a62b630f3 100644 --- a/nodejs/docs/test-cli.mdx +++ b/nodejs/docs/test-cli.mdx @@ -86,7 +86,6 @@ npx playwright test --ui | `-c ` or `--config ` | Configuration file, or a test directory with optional "playwright.config.{m,c}?{js,ts}". 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 ` | Maximum time this test suite can run in milliseconds (default: unlimited). | @@ -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). diff --git a/python/docs/api/class-browsercontext.mdx b/python/docs/api/class-browsercontext.mdx index 12325e44e6f..177ac6091a2 100644 --- a/python/docs/api/class-browsercontext.mdx +++ b/python/docs/api/class-browsercontext.mdx @@ -1180,70 +1180,6 @@ browser_context.set_offline(offline) --- -### set_storage_state {#browser-context-set-storage-state} - -Added in: v1.55browserContext.set_storage_state - -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]# - - `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]# - ---- - ### storage_state {#browser-context-storage-state} Added before v1.9browserContext.storage_state diff --git a/python/docs/api/class-clock.mdx b/python/docs/api/class-clock.mdx index 5eddfbf456c..cd5633f1243 100644 --- a/python/docs/api/class-clock.mdx +++ b/python/docs/api/class-clock.mdx @@ -329,23 +329,6 @@ await page.clock.set_system_time("2020-02-02") **Returns** - [NoneType]# ---- - -### uninstall {#clock-uninstall} - -Added in: v1.55clock.uninstall - -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]# - [Accessibility]: /api/class-accessibility.mdx "Accessibility" [APIRequest]: /api/class-apirequest.mdx "APIRequest"