You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/api.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -492,7 +492,7 @@ Creates a new page in the browser context.
492
492
- returns: <[Array]<[Page]>> All open pages in the context. Non visible pages, such as `"background_page"`, will not be listed here. You can find them using [chromiumBrowserContext.backgroundPages()](#chromiumbrowsercontextbackgroundpages).
493
493
494
494
#### browserContext.route(url, handler)
495
-
-`url` <[string]|[RegExp]|[function]\([string]\):[boolean]> A glob pattern, regex pattern or predicate receiving [URL] to match while routing.
495
+
-`url` <[string]|[RegExp]|[function]\([URL]\):[boolean]> A glob pattern, regex pattern or predicate receiving [URL] to match while routing.
496
496
-`handler` <[function]\([Route], [Request]\)> handler function to route the request.
497
497
- returns: <[Promise]>
498
498
@@ -581,7 +581,7 @@ To disable authentication, pass `null`.
581
581
- returns: <[Promise]>
582
582
583
583
#### browserContext.unroute(url[, handler])
584
-
-`url` <[string]|[RegExp]|[function]\([string]\):[boolean]> A glob pattern, regex pattern or predicate receiving [URL] to match while routing.
584
+
-`url` <[string]|[RegExp]|[function]\([URL]\):[boolean]> A glob pattern, regex pattern or predicate receiving [URL] to match while routing.
585
585
-`handler` <[function]\([Route], [Request]\)> Handler function to route the request.
586
586
- returns: <[Promise]>
587
587
@@ -1481,7 +1481,7 @@ await browser.close();
1481
1481
- returns: <[Promise]<?[Response]>> Promise which resolves to the main resource response. In case of multiple redirects, the navigation will resolve with the response of the last redirect.
1482
1482
1483
1483
#### page.route(url, handler)
1484
-
-`url` <[string]|[RegExp]|[function]\([string]\):[boolean]> A glob pattern, regex pattern or predicate receiving [URL] to match while routing.
1484
+
-`url` <[string]|[RegExp]|[function]\([URL]\):[boolean]> A glob pattern, regex pattern or predicate receiving [URL] to match while routing.
1485
1485
-`handler` <[function]\([Route], [Request]\)> handler function to route the request.
1486
1486
- returns: <[Promise]>.
1487
1487
@@ -1672,7 +1672,7 @@ If there's no element matching `selector`, the method waits until a matching ele
1672
1672
Shortcut for [page.mainFrame().uncheck(selector[, options])](#frameuncheckselector-options).
1673
1673
1674
1674
#### page.unroute(url[, handler])
1675
-
-`url` <[string]|[RegExp]|[function]\([string]\):[boolean]> A glob pattern, regex pattern or predicate receiving [URL] to match while routing.
1675
+
-`url` <[string]|[RegExp]|[function]\([URL]\):[boolean]> A glob pattern, regex pattern or predicate receiving [URL] to match while routing.
1676
1676
-`handler` <[function]\([Route], [Request]\)> Handler function to route the request.
0 commit comments