Skip to content

Commit

Permalink
feat(roll): roll to ToT Playwright (31-07-24) (#1454)
Browse files Browse the repository at this point in the history
  • Loading branch information
playwrightmachine authored Jul 31, 2024
1 parent 6aed3ae commit 99fc60d
Show file tree
Hide file tree
Showing 10 changed files with 36 additions and 24 deletions.
3 changes: 3 additions & 0 deletions dotnet/docs/api/class-route.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,9 @@ await page.RouteAsync("https://dog.ceo/api/breeds/list/all", async route =>
- `MaxRedirects` [int]? *(optional)* <font size="2">Added in: v1.31</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="route-fetch-option-max-redirects"/><a href="#route-fetch-option-max-redirects" class="list-anchor">#</a>

Maximum number of request redirects that will be followed automatically. An error will be thrown if the number is exceeded. Defaults to `20`. Pass `0` to not follow redirects.
- `MaxRetries` [int]? *(optional)* <font size="2">Added in: v1.46</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="route-fetch-option-max-retries"/><a href="#route-fetch-option-max-retries" class="list-anchor">#</a>

Maximum number of times network errors should be retried. Currently only `ECONNRESET` error is retried. Does not retry based on HTTP response codes. An error will be thrown if the limit is exceeded. Defaults to `0` - no retries.
- `Method` [string]? *(optional)*<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="route-fetch-option-method"/><a href="#route-fetch-option-method" class="list-anchor">#</a>

If set changes the request method (e.g. GET or POST).
Expand Down
6 changes: 3 additions & 3 deletions java/docs/api/class-apirequest.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ APIRequest.newContext(options);
- `setOrigin` [String] <font size="2">Added in: 1.46</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="api-request-new-context-option-origin"/><a href="#api-request-new-context-option-origin" class="list-anchor">#</a>

Exact origin that the certificate is valid for. Origin includes `https` protocol, a hostname and optionally a port.
- `setCertPath` [String] *(optional)* <font size="2">Added in: 1.46</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="api-request-new-context-option-cert-path"/><a href="#api-request-new-context-option-cert-path" class="list-anchor">#</a>
- `setCertPath` [Path] *(optional)* <font size="2">Added in: 1.46</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="api-request-new-context-option-cert-path"/><a href="#api-request-new-context-option-cert-path" class="list-anchor">#</a>

Path to the file with the certificate in PEM format.
- `setKeyPath` [String] *(optional)* <font size="2">Added in: 1.46</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="api-request-new-context-option-key-path"/><a href="#api-request-new-context-option-key-path" class="list-anchor">#</a>
- `setKeyPath` [Path] *(optional)* <font size="2">Added in: 1.46</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="api-request-new-context-option-key-path"/><a href="#api-request-new-context-option-key-path" class="list-anchor">#</a>

Path to the file with the private key in PEM format.
- `setPfxPath` [String] *(optional)* <font size="2">Added in: 1.46</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="api-request-new-context-option-pfx-path"/><a href="#api-request-new-context-option-pfx-path" class="list-anchor">#</a>
- `setPfxPath` [Path] *(optional)* <font size="2">Added in: 1.46</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="api-request-new-context-option-pfx-path"/><a href="#api-request-new-context-option-pfx-path" class="list-anchor">#</a>

Path to the PFX or PKCS12 encoded private key and certificate chain.
- `setPassphrase` [String] *(optional)* <font size="2">Added in: 1.46</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="api-request-new-context-option-passphrase"/><a href="#api-request-new-context-option-passphrase" class="list-anchor">#</a>
Expand Down
12 changes: 6 additions & 6 deletions java/docs/api/class-browser.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -180,13 +180,13 @@ browser.close();
- `setOrigin` [String] <font size="2">Added in: 1.46</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-new-context-option-origin"/><a href="#browser-new-context-option-origin" class="list-anchor">#</a>

Exact origin that the certificate is valid for. Origin includes `https` protocol, a hostname and optionally a port.
- `setCertPath` [String] *(optional)* <font size="2">Added in: 1.46</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-new-context-option-cert-path"/><a href="#browser-new-context-option-cert-path" class="list-anchor">#</a>
- `setCertPath` [Path] *(optional)* <font size="2">Added in: 1.46</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-new-context-option-cert-path"/><a href="#browser-new-context-option-cert-path" class="list-anchor">#</a>

Path to the file with the certificate in PEM format.
- `setKeyPath` [String] *(optional)* <font size="2">Added in: 1.46</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-new-context-option-key-path"/><a href="#browser-new-context-option-key-path" class="list-anchor">#</a>
- `setKeyPath` [Path] *(optional)* <font size="2">Added in: 1.46</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-new-context-option-key-path"/><a href="#browser-new-context-option-key-path" class="list-anchor">#</a>

Path to the file with the private key in PEM format.
- `setPfxPath` [String] *(optional)* <font size="2">Added in: 1.46</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-new-context-option-pfx-path"/><a href="#browser-new-context-option-pfx-path" class="list-anchor">#</a>
- `setPfxPath` [Path] *(optional)* <font size="2">Added in: 1.46</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-new-context-option-pfx-path"/><a href="#browser-new-context-option-pfx-path" class="list-anchor">#</a>

Path to the PFX or PKCS12 encoded private key and certificate chain.
- `setPassphrase` [String] *(optional)* <font size="2">Added in: 1.46</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-new-context-option-passphrase"/><a href="#browser-new-context-option-passphrase" class="list-anchor">#</a>
Expand Down Expand Up @@ -394,13 +394,13 @@ Browser.newPage(options);
- `setOrigin` [String] <font size="2">Added in: 1.46</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-new-page-option-origin"/><a href="#browser-new-page-option-origin" class="list-anchor">#</a>

Exact origin that the certificate is valid for. Origin includes `https` protocol, a hostname and optionally a port.
- `setCertPath` [String] *(optional)* <font size="2">Added in: 1.46</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-new-page-option-cert-path"/><a href="#browser-new-page-option-cert-path" class="list-anchor">#</a>
- `setCertPath` [Path] *(optional)* <font size="2">Added in: 1.46</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-new-page-option-cert-path"/><a href="#browser-new-page-option-cert-path" class="list-anchor">#</a>

Path to the file with the certificate in PEM format.
- `setKeyPath` [String] *(optional)* <font size="2">Added in: 1.46</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-new-page-option-key-path"/><a href="#browser-new-page-option-key-path" class="list-anchor">#</a>
- `setKeyPath` [Path] *(optional)* <font size="2">Added in: 1.46</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-new-page-option-key-path"/><a href="#browser-new-page-option-key-path" class="list-anchor">#</a>

Path to the file with the private key in PEM format.
- `setPfxPath` [String] *(optional)* <font size="2">Added in: 1.46</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-new-page-option-pfx-path"/><a href="#browser-new-page-option-pfx-path" class="list-anchor">#</a>
- `setPfxPath` [Path] *(optional)* <font size="2">Added in: 1.46</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-new-page-option-pfx-path"/><a href="#browser-new-page-option-pfx-path" class="list-anchor">#</a>

Path to the PFX or PKCS12 encoded private key and certificate chain.
- `setPassphrase` [String] *(optional)* <font size="2">Added in: 1.46</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-new-page-option-passphrase"/><a href="#browser-new-page-option-passphrase" class="list-anchor">#</a>
Expand Down
6 changes: 3 additions & 3 deletions java/docs/api/class-browsertype.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -288,13 +288,13 @@ BrowserType.launchPersistentContext(userDataDir, options);
- `setOrigin` [String] <font size="2">Added in: 1.46</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-type-launch-persistent-context-option-origin"/><a href="#browser-type-launch-persistent-context-option-origin" class="list-anchor">#</a>

Exact origin that the certificate is valid for. Origin includes `https` protocol, a hostname and optionally a port.
- `setCertPath` [String] *(optional)* <font size="2">Added in: 1.46</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-type-launch-persistent-context-option-cert-path"/><a href="#browser-type-launch-persistent-context-option-cert-path" class="list-anchor">#</a>
- `setCertPath` [Path] *(optional)* <font size="2">Added in: 1.46</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-type-launch-persistent-context-option-cert-path"/><a href="#browser-type-launch-persistent-context-option-cert-path" class="list-anchor">#</a>

Path to the file with the certificate in PEM format.
- `setKeyPath` [String] *(optional)* <font size="2">Added in: 1.46</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-type-launch-persistent-context-option-key-path"/><a href="#browser-type-launch-persistent-context-option-key-path" class="list-anchor">#</a>
- `setKeyPath` [Path] *(optional)* <font size="2">Added in: 1.46</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-type-launch-persistent-context-option-key-path"/><a href="#browser-type-launch-persistent-context-option-key-path" class="list-anchor">#</a>

Path to the file with the private key in PEM format.
- `setPfxPath` [String] *(optional)* <font size="2">Added in: 1.46</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-type-launch-persistent-context-option-pfx-path"/><a href="#browser-type-launch-persistent-context-option-pfx-path" class="list-anchor">#</a>
- `setPfxPath` [Path] *(optional)* <font size="2">Added in: 1.46</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-type-launch-persistent-context-option-pfx-path"/><a href="#browser-type-launch-persistent-context-option-pfx-path" class="list-anchor">#</a>

Path to the PFX or PKCS12 encoded private key and certificate chain.
- `setPassphrase` [String] *(optional)* <font size="2">Added in: 1.46</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-type-launch-persistent-context-option-passphrase"/><a href="#browser-type-launch-persistent-context-option-passphrase" class="list-anchor">#</a>
Expand Down
3 changes: 3 additions & 0 deletions java/docs/api/class-route.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,9 @@ page.route("https://dog.ceo/api/breeds/list/all", route -> {
- `setMaxRedirects` [int] *(optional)* <font size="2">Added in: v1.31</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="route-fetch-option-max-redirects"/><a href="#route-fetch-option-max-redirects" class="list-anchor">#</a>

Maximum number of request redirects that will be followed automatically. An error will be thrown if the number is exceeded. Defaults to `20`. Pass `0` to not follow redirects.
- `setMaxRetries` [int] *(optional)* <font size="2">Added in: v1.46</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="route-fetch-option-max-retries"/><a href="#route-fetch-option-max-retries" class="list-anchor">#</a>

Maximum number of times network errors should be retried. Currently only `ECONNRESET` error is retried. Does not retry based on HTTP response codes. An error will be thrown if the limit is exceeded. Defaults to `0` - no retries.
- `setMethod` [String] *(optional)*<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="route-fetch-option-method"/><a href="#route-fetch-option-method" class="list-anchor">#</a>

If set changes the request method (e.g. GET or POST).
Expand Down
3 changes: 3 additions & 0 deletions nodejs/docs/api/class-route.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,9 @@ await page.route('https://dog.ceo/api/breeds/list/all', async route => {
- `maxRedirects` [number] *(optional)* <font size="2">Added in: v1.31</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="route-fetch-option-max-redirects"/><a href="#route-fetch-option-max-redirects" class="list-anchor">#</a>

Maximum number of request redirects that will be followed automatically. An error will be thrown if the number is exceeded. Defaults to `20`. Pass `0` to not follow redirects.
- `maxRetries` [number] *(optional)* <font size="2">Added in: v1.46</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="route-fetch-option-max-retries"/><a href="#route-fetch-option-max-retries" class="list-anchor">#</a>

Maximum number of times network errors should be retried. Currently only `ECONNRESET` error is retried. Does not retry based on HTTP response codes. An error will be thrown if the limit is exceeded. Defaults to `0` - no retries.
- `method` [string] *(optional)*<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="route-fetch-option-method"/><a href="#route-fetch-option-method" class="list-anchor">#</a>

If set changes the request method (e.g. GET or POST).
Expand Down
6 changes: 3 additions & 3 deletions python/docs/api/class-apirequest.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ api_request.new_context(**kwargs)
- `origin` [str] <font size="2">Added in: 1.46</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="api-request-new-context-option-origin"/><a href="#api-request-new-context-option-origin" class="list-anchor">#</a>

Exact origin that the certificate is valid for. Origin includes `https` protocol, a hostname and optionally a port.
- `certPath` [str] *(optional)* <font size="2">Added in: 1.46</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="api-request-new-context-option-cert-path"/><a href="#api-request-new-context-option-cert-path" class="list-anchor">#</a>
- `certPath` [Union]\[[str], [pathlib.Path]\] *(optional)* <font size="2">Added in: 1.46</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="api-request-new-context-option-cert-path"/><a href="#api-request-new-context-option-cert-path" class="list-anchor">#</a>

Path to the file with the certificate in PEM format.
- `keyPath` [str] *(optional)* <font size="2">Added in: 1.46</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="api-request-new-context-option-key-path"/><a href="#api-request-new-context-option-key-path" class="list-anchor">#</a>
- `keyPath` [Union]\[[str], [pathlib.Path]\] *(optional)* <font size="2">Added in: 1.46</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="api-request-new-context-option-key-path"/><a href="#api-request-new-context-option-key-path" class="list-anchor">#</a>

Path to the file with the private key in PEM format.
- `pfxPath` [str] *(optional)* <font size="2">Added in: 1.46</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="api-request-new-context-option-pfx-path"/><a href="#api-request-new-context-option-pfx-path" class="list-anchor">#</a>
- `pfxPath` [Union]\[[str], [pathlib.Path]\] *(optional)* <font size="2">Added in: 1.46</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="api-request-new-context-option-pfx-path"/><a href="#api-request-new-context-option-pfx-path" class="list-anchor">#</a>

Path to the PFX or PKCS12 encoded private key and certificate chain.
- `passphrase` [str] *(optional)* <font size="2">Added in: 1.46</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="api-request-new-context-option-passphrase"/><a href="#api-request-new-context-option-passphrase" class="list-anchor">#</a>
Expand Down
Loading

0 comments on commit 99fc60d

Please sign in to comment.