Skip to content

Commit

Permalink
feat(roll): roll to ToT Playwright (09-09-22) (microsoft#768)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
playwrightmachine and github-actions[bot] authored Sep 9, 2022
1 parent 5938555 commit 73c9208
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion dotnet/docs/cli.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ var browser = await chromium.LaunchAsync(new BrowserTypeLaunchOptions { Headless

// Setup context however you like.
var context = await browser.NewContextAsync(); // Pass any options
await context.RouteAsync('**/*', route => route.ContinueAsync());
await context.RouteAsync("**/*", route => route.ContinueAsync());

// Pause the page, and start recording manually.
var page = await context.NewPageAsync();
Expand Down
6 changes: 3 additions & 3 deletions dotnet/docs/codegen.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ pwsh bin/Debug/netX/playwright.ps1 codegen --timezone="Europe/Rome" --geolocatio

## Preserve authenticated state

Run `codegen` with `--save-storage` to save [cookies](https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies) and [localStorage](https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage) at the end of the session. This is useful to separately record an authentication step and reuse it later in the tests.
Run `codegen` with `--save-storage` to save [cookies](https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies) and [localStorage](https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage) at the end of the session. This is useful to separately record an authentication step and reuse it later in the tests.

After performing authentication and closing the browser, `auth.json` will contain the storage state.
After performing authentication and closing the browser, `auth.json` will contain the storage state.

```bash
pwsh bin/Debug/netX/playwright.ps1 codegen --save-storage=auth.json
Expand Down Expand Up @@ -97,7 +97,7 @@ var browser = await chromium.LaunchAsync(new BrowserTypeLaunchOptions { Headless

// Setup context however you like.
var context = await browser.NewContextAsync(); // Pass any options
await context.RouteAsync('**/*', route => route.ContinueAsync());
await context.RouteAsync("**/*", route => route.ContinueAsync());

// Pause the page, and start recording manually.
var page = await context.NewPageAsync();
Expand Down
4 changes: 2 additions & 2 deletions java/docs/codegen.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ mvn exec:java -e -Dexec.mainClass=com.microsoft.playwright.CLI -Dexec.args='code

## Preserve authenticated state

Run `codegen` with `--save-storage` to save [cookies](https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies) and [localStorage](https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage) at the end of the session. This is useful to separately record an authentication step and reuse it later in the tests.
Run `codegen` with `--save-storage` to save [cookies](https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies) and [localStorage](https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage) at the end of the session. This is useful to separately record an authentication step and reuse it later in the tests.

After performing authentication and closing the browser, `auth.json` will contain the storage state.
After performing authentication and closing the browser, `auth.json` will contain the storage state.

```bash
mvn exec:java -e -Dexec.mainClass=com.microsoft.playwright.CLI -Dexec.args="codegen --save-storage=auth.json"
Expand Down
4 changes: 2 additions & 2 deletions nodejs/docs/codegen.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ npx playwright codegen --timezone="Europe/Rome" --geolocation="41.890221,12.4923

## Preserve authenticated state

Run `codegen` with `--save-storage` to save [cookies](https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies) and [localStorage](https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage) at the end of the session. This is useful to separately record an authentication step and reuse it later in the tests.
Run `codegen` with `--save-storage` to save [cookies](https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies) and [localStorage](https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage) at the end of the session. This is useful to separately record an authentication step and reuse it later in the tests.

After performing authentication and closing the browser, `auth.json` will contain the storage state.
After performing authentication and closing the browser, `auth.json` will contain the storage state.

```bash
npx playwright codegen --save-storage=auth.json
Expand Down
4 changes: 2 additions & 2 deletions python/docs/codegen.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ playwright codegen --timezone="Europe/Rome" --geolocation="41.890221,12.492348"

## Preserve authenticated state

Run `codegen` with `--save-storage` to save [cookies](https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies) and [localStorage](https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage) at the end of the session. This is useful to separately record an authentication step and reuse it later in the tests.
Run `codegen` with `--save-storage` to save [cookies](https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies) and [localStorage](https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage) at the end of the session. This is useful to separately record an authentication step and reuse it later in the tests.

After performing authentication and closing the browser, `auth.json` will contain the storage state.
After performing authentication and closing the browser, `auth.json` will contain the storage state.

```bash
playwright codegen --save-storage=auth.json
Expand Down

0 comments on commit 73c9208

Please sign in to comment.