Skip to content

Commit 8dad493

Browse files
feat(roll): roll to ToT Playwright (12-02-26) (#1969)
Co-authored-by: microsoft-playwright-automation[bot] <203992400+microsoft-playwright-automation[bot]@users.noreply.github.com>
1 parent b19f7bf commit 8dad493

8 files changed

Lines changed: 12 additions & 0 deletions

File tree

dotnet/docs/api/class-browsercontext.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,7 @@ await BrowserContext.GrantPermissionsAsync(permissions, options);
422422
* `'notifications'`
423423
* `'payment-handler'`
424424
* `'storage-access'`
425+
* `'screen-wake-lock'`
425426
- `options` `BrowserContextGrantPermissionsOptions?` *(optional)*
426427
- `Origin` [string]? *(optional)*<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-context-grant-permissions-option-origin"/><a href="#browser-context-grant-permissions-option-origin" class="list-anchor">#</a>
427428

dotnet/docs/api/class-page.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1645,6 +1645,8 @@ await page.RouteAsync("/api/**", async r =>
16451645
});
16461646
```
16471647

1648+
If a request matches multiple registered routes, the most recently registered route takes precedence.
1649+
16481650
Page routes take precedence over browser context routes (set up with [BrowserContext.RouteAsync()](/api/class-browsercontext.mdx#browser-context-route)) when request matches both handlers.
16491651

16501652
To remove a route with its handler you can use [Page.UnrouteAsync()](/api/class-page.mdx#page-unroute).

java/docs/api/class-browsercontext.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,7 @@ BrowserContext.grantPermissions(permissions, options);
433433
* `'notifications'`
434434
* `'payment-handler'`
435435
* `'storage-access'`
436+
* `'screen-wake-lock'`
436437
- `options` `BrowserContext.GrantPermissionsOptions` *(optional)*
437438
- `setOrigin` [String] *(optional)*<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-context-grant-permissions-option-origin"/><a href="#browser-context-grant-permissions-option-origin" class="list-anchor">#</a>
438439

java/docs/api/class-page.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1703,6 +1703,8 @@ page.route("/api/**", route -> {
17031703
});
17041704
```
17051705

1706+
If a request matches multiple registered routes, the most recently registered route takes precedence.
1707+
17061708
Page routes take precedence over browser context routes (set up with [BrowserContext.route()](/api/class-browsercontext.mdx#browser-context-route)) when request matches both handlers.
17071709

17081710
To remove a route with its handler you can use [Page.unroute()](/api/class-page.mdx#page-unroute).

nodejs/docs/api/class-browsercontext.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,7 @@ await browserContext.grantPermissions(permissions, options);
425425
* `'notifications'`
426426
* `'payment-handler'`
427427
* `'storage-access'`
428+
* `'screen-wake-lock'`
428429
- `options` [Object] *(optional)*
429430
- `origin` [string] *(optional)*<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-context-grant-permissions-option-origin"/><a href="#browser-context-grant-permissions-option-origin" class="list-anchor">#</a>
430431

nodejs/docs/api/class-page.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1739,6 +1739,8 @@ await page.route('/api/**', async route => {
17391739
});
17401740
```
17411741

1742+
If a request matches multiple registered routes, the most recently registered route takes precedence.
1743+
17421744
Page routes take precedence over browser context routes (set up with [browserContext.route()](/api/class-browsercontext.mdx#browser-context-route)) when request matches both handlers.
17431745

17441746
To remove a route with its handler you can use [page.unroute()](/api/class-page.mdx#page-unroute).

python/docs/api/class-browsercontext.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -718,6 +718,7 @@ browser_context.grant_permissions(permissions, **kwargs)
718718
* `'notifications'`
719719
* `'payment-handler'`
720720
* `'storage-access'`
721+
* `'screen-wake-lock'`
721722
- `origin` [str] *(optional)*<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-context-grant-permissions-option-origin"/><a href="#browser-context-grant-permissions-option-origin" class="list-anchor">#</a>
722723

723724
The [origin] to grant permissions to, e.g. "https://example.com".

python/docs/api/class-page.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2650,6 +2650,8 @@ await page.route("/api/**", handle_route)
26502650
</TabItem>
26512651
</Tabs>
26522652

2653+
If a request matches multiple registered routes, the most recently registered route takes precedence.
2654+
26532655
Page routes take precedence over browser context routes (set up with [browser_context.route()](/api/class-browsercontext.mdx#browser-context-route)) when request matches both handlers.
26542656

26552657
To remove a route with its handler you can use [page.unroute()](/api/class-page.mdx#page-unroute).

0 commit comments

Comments
 (0)