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
1 change: 1 addition & 0 deletions dotnet/docs/api/class-browsercontext.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,7 @@ await BrowserContext.GrantPermissionsAsync(permissions, options);
* `'notifications'`
* `'payment-handler'`
* `'storage-access'`
* `'screen-wake-lock'`
- `options` `BrowserContextGrantPermissionsOptions?` *(optional)*
- `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>

Expand Down
2 changes: 2 additions & 0 deletions dotnet/docs/api/class-page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -1645,6 +1645,8 @@ await page.RouteAsync("/api/**", async r =>
});
```

If a request matches multiple registered routes, the most recently registered route takes precedence.

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.

To remove a route with its handler you can use [Page.UnrouteAsync()](/api/class-page.mdx#page-unroute).
Expand Down
1 change: 1 addition & 0 deletions java/docs/api/class-browsercontext.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,7 @@ BrowserContext.grantPermissions(permissions, options);
* `'notifications'`
* `'payment-handler'`
* `'storage-access'`
* `'screen-wake-lock'`
- `options` `BrowserContext.GrantPermissionsOptions` *(optional)*
- `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>

Expand Down
2 changes: 2 additions & 0 deletions java/docs/api/class-page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -1703,6 +1703,8 @@ page.route("/api/**", route -> {
});
```

If a request matches multiple registered routes, the most recently registered route takes precedence.

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.

To remove a route with its handler you can use [Page.unroute()](/api/class-page.mdx#page-unroute).
Expand Down
1 change: 1 addition & 0 deletions nodejs/docs/api/class-browsercontext.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,7 @@ await browserContext.grantPermissions(permissions, options);
* `'notifications'`
* `'payment-handler'`
* `'storage-access'`
* `'screen-wake-lock'`
- `options` [Object] *(optional)*
- `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>

Expand Down
2 changes: 2 additions & 0 deletions nodejs/docs/api/class-page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -1739,6 +1739,8 @@ await page.route('/api/**', async route => {
});
```

If a request matches multiple registered routes, the most recently registered route takes precedence.

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.

To remove a route with its handler you can use [page.unroute()](/api/class-page.mdx#page-unroute).
Expand Down
1 change: 1 addition & 0 deletions python/docs/api/class-browsercontext.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -718,6 +718,7 @@ browser_context.grant_permissions(permissions, **kwargs)
* `'notifications'`
* `'payment-handler'`
* `'storage-access'`
* `'screen-wake-lock'`
- `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>

The [origin] to grant permissions to, e.g. "https://example.com".
Expand Down
2 changes: 2 additions & 0 deletions python/docs/api/class-page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2650,6 +2650,8 @@ await page.route("/api/**", handle_route)
</TabItem>
</Tabs>

If a request matches multiple registered routes, the most recently registered route takes precedence.

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.

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