Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
docs: link to the new docs from source (#5092)
Pavel Feldman8f06761ba19d
diff --git a/docs/src/api/class-elementhandle.md b/docs/src/api/class-elementhandle.mdindex 7e464a1063..ef669e663d 100644--- a/docs/src/api/class-elementhandle.md+++ b/docs/src/api/class-elementhandle.md@@ -62,7 +62,7 @@ ElementHandle instances can be used as an argument in [`method: Page.$eval`] and- returns: <[null]|[ElementHandle]>The method finds an element matching the specified selector in the `ElementHandle`'s subtree. See-[Working with selectors](./selectors.md#working-with-selectors) for more details. If no elements match the selector,+[Working with selectors](./selectors.md) for more details. If no elements match the selector,returns `null`.### param: ElementHandle.$.selector = %%-query-selector-%%@@ -73,7 +73,7 @@ returns `null`.- returns: <[Array]<[ElementHandle]>>The method finds all elements matching the specified selector in the `ElementHandle`s subtree. See-[Working with selectors](./selectors.md#working-with-selectors) for more details. If no elements match the selector,+[Working with selectors](./selectors.md) for more details. If no elements match the selector,returns empty array.### param: ElementHandle.$$.selector = %%-query-selector-%%@@ -86,7 +86,7 @@ returns empty array.Returns the return value of [`param: pageFunction`]The method finds an element matching the specified selector in the `ElementHandle`s subtree and passes it as a first-argument to [`param: pageFunction`]. See [Working with selectors](./selectors.md#working-with-selectors) for more+argument to [`param: pageFunction`]. See [Working with selectors](./selectors.md) for moredetails. If no elements match the selector, the method throws an error.If [`param: pageFunction`] returns a [Promise], then `frame.$eval` would wait for the promise to resolve and return its@@ -134,7 +134,7 @@ Returns the return value of [`param: pageFunction`]The method finds all elements matching the specified selector in the `ElementHandle`'s subtree and passes an array ofmatched elements as a first argument to [`param: pageFunction`]. See-[Working with selectors](./selectors.md#working-with-selectors) for more details.+[Working with selectors](./selectors.md) for more details.If [`param: pageFunction`] returns a [Promise], then `frame.$$eval` would wait for the promise to resolve and return itsvalue.diff --git a/docs/src/api/class-frame.md b/docs/src/api/class-frame.mdindex 5485606f86..4116e7b0e1 100644--- a/docs/src/api/class-frame.md+++ b/docs/src/api/class-frame.md@@ -82,7 +82,7 @@ with sync_playwright() as playwright:Returns the ElementHandle pointing to the frame element.The method finds an element matching the specified selector within the frame. See-[Working with selectors](./selectors.md#working-with-selectors) for more details. If no elements match the selector,+[Working with selectors](./selectors.md) for more details. If no elements match the selector,returns `null`.### param: Frame.$.selector = %%-query-selector-%%@@ -95,7 +95,7 @@ returns `null`.Returns the ElementHandles pointing to the frame elements.The method finds all elements matching the specified selector within the frame. See-[Working with selectors](./selectors.md#working-with-selectors) for more details. If no elements match the selector,+[Working with selectors](./selectors.md) for more details. If no elements match the selector,returns empty array.### param: Frame.$$.selector = %%-query-selector-%%@@ -108,7 +108,7 @@ returns empty array.Returns the return value of [`param: pageFunction`]The method finds an element matching the specified selector within the frame and passes it as a first argument to-[`param: pageFunction`]. See [Working with selectors](./selectors.md#working-with-selectors) for more details. If no+[`param: pageFunction`]. See [Working with selectors](./selectors.md) for more details. If noelements match the selector, the method throws an error.If [`param: pageFunction`] returns a [Promise], then `frame.$eval` would wait for the promise to resolve and return its@@ -155,7 +155,7 @@ Optional argument to pass to [`param: pageFunction`]Returns the return value of [`param: pageFunction`]The method finds all elements matching the specified selector within the frame and passes an array of matched elements-as a first argument to [`param: pageFunction`]. See [Working with selectors](./selectors.md#working-with-selectors) for+as a first argument to [`param: pageFunction`]. See [Working with selectors](./selectors.md) formore details.If [`param: pageFunction`] returns a [Promise], then `frame.$$eval` would wait for the promise to resolve and return its@@ -416,9 +416,9 @@ Returns the return value of [`param: pageFunction`]If the function passed to the [`method: Frame.evaluate`] returns a [Promise], then [`method: Frame.evaluate`] would wait for the promise toresolve and return its value.-If the function passed to the [`method: Frame.evaluate`] returns a non-[Serializable] value, then[ method: `Frame.evaluate`] returns-`undefined`. DevTools Protocol also supports transferring some additional values that are not serializable by `JSON`:-`-0`, `NaN`, `Infinity`, `-Infinity`, and bigint literals.+If the function passed to the [`method: Frame.evaluate`] returns a non-[Serializable] value, then+[`method: Frame.evaluate`] returns `undefined`. DevTools Protocol also supports transferring some additional values that+are not serializable by `JSON`: `-0`, `NaN`, `Infinity`, `-Infinity`, and bigint literals.```jsconst result = await frame.evaluate(([x, y]) => {@@ -493,11 +493,11 @@ Optional argument to pass to [`param: pageFunction`]Returns the return value of [`param: pageFunction`] as in-page object (JSHandle).-The only difference between [`method: Frame.evaluate`] and [`method: Frame.evaluateHandle`] is that[ method: Fframe.evaluateHandle`] returns in-page-object (JSHandle).+The only difference between [`method: Frame.evaluate`] and [`method: Frame.evaluateHandle`] is that+[method: Frame.evaluateHandle`] returns in-page object (JSHandle).-If the function, passed to the [`method: Frame.evaluateHandle`], returns a [Promise], then[ method: Fframe.evaluateHandle`] would wait for-the promise to resolve and return its value.+If the function, passed to the [`method: Frame.evaluateHandle`], returns a [Promise], then+[`method: Frame.evaluateHandle`] would wait for the promise to resolve and return its value.```jsconst aWindowHandle = await frame.evaluateHandle(() => Promise.resolve(window));@@ -1024,7 +1024,7 @@ Returns frame's url.Returns when the [`param: pageFunction`] returns a truthy value, returns that value.-The `waitForFunction` can be used to observe viewport size change:+The [`method: Frame.waitForFunction`] can be used to observe viewport size change:```jsconst { firefox } = require('playwright'); // Or 'chromium' or 'webkit'.diff --git a/docs/src/api/class-page.md b/docs/src/api/class-page.mdindex d2c4bc234e..e98ffa6879 100644--- a/docs/src/api/class-page.md+++ b/docs/src/api/class-page.md@@ -829,12 +829,12 @@ page.evaluate("matchMedia('(prefers-color-scheme: no-preference)').matches")Returns the value of the [`param: pageFunction`] invocation.-If the function passed to the [`method: Page.evaluate`] returns a [Promise], then [`method: Page.evaluate`] would wait for the promise to-resolve and return its value.+If the function passed to the [`method: Page.evaluate`] returns a [Promise], then [`method: Page.evaluate`] would wait+for the promise to resolve and return its value.-If the function passed to the [`method: Page.evaluate`] returns a non-[Serializable] value, then[ method: `Page.evaluate`] resolves to-`undefined`. DevTools Protocol also supports transferring some additional values that are not serializable by `JSON`:-`-0`, `NaN`, `Infinity`, `-Infinity`, and bigint literals.+If the function passed to the [`method: Page.evaluate`] returns a non-[Serializable] value, then+[`method: Page.evaluate`] resolves to `undefined`. DevTools Protocol also supports transferring some additional values+that are not serializable by `JSON`: `-0`, `NaN`, `Infinity`, `-Infinity`, and bigint literals.Passing argument to [`param: pageFunction`]:@@ -2206,7 +2206,7 @@ Either a predicate that receives an event or an options object. Optional.Returns when the [`param: pageFunction`] returns a truthy value. It resolves to a JSHandle of the truthy value.-The `waitForFunction` can be used to observe viewport size change:+The [`method: Page.waitForFunction`] can be used to observe viewport size change:```jsconst { webkit } = require('playwright'); // Or 'chromium' or 'firefox'.diff --git a/docs/src/api/class-playwright.md b/docs/src/api/class-playwright.mdindex d642e6f7da..18eb2fce1b 100644--- a/docs/src/api/class-playwright.md+++ b/docs/src/api/class-playwright.md@@ -157,7 +157,7 @@ This object can be used to launch or connect to Firefox, returning instances of- type: <[Selectors]>Selectors can be used to install custom selector engines. See-[Working with selectors](./selectors.md#working-with-selectors) for more information.+[Working with selectors](./selectors.md) for more information.## property: Playwright.webkit- type: <[BrowserType]>diff --git a/docs/src/api/class-selectors.md b/docs/src/api/class-selectors.mdindex 4d08eef880..a9f7f1fff2 100644--- a/docs/src/api/class-selectors.md+++ b/docs/src/api/class-selectors.md@@ -1,7 +1,7 @@# class: SelectorsSelectors can be used to install custom selector engines. See-[Working with selectors](./selectors.md#working-with-selectors) for more information.+[Working with selectors](./selectors.md) for more information.## async method: Selectors.registerdiff --git a/docs/src/api/params.md b/docs/src/api/params.mdindex 7c6bb9aee1..228f354ae2 100644--- a/docs/src/api/params.md+++ b/docs/src/api/params.md@@ -45,7 +45,7 @@ Whether to bypass the [actionability](./actionability.md) checks. Defaults to `f- `selector` <[string]>A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See-[working with selectors](./selectors.md#working-with-selectors) for more details.+[working with selectors](./selectors.md) for more details.## input-position- `position` <[Object]>@@ -85,7 +85,7 @@ defaults to 1. See [UIEvent.detail].## query-selector- `selector` <[string]>-A selector to query for. See [working with selectors](./selectors.md#working-with-selectors) for more details.+A selector to query for. See [working with selectors](./selectors.md) for more details.## wait-for-selector-state- `state` <"attached"|"detached"|"visible"|"hidden">diff --git a/types/types.d.ts b/types/types.d.tsindex 2f2b8ac754..da826c96c8 100644--- a/types/types.d.ts+++ b/types/types.d.ts@@ -76,15 +76,17 @@ export interface Page {* Returns the value of the `pageFunction` invocation.** If the function passed to the- * [page.evaluate(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pageevaluate) returns a [Promise],- * then [page.evaluate(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pageevaluate) would wait for the- * promise to resolve and return its value.+ * [page.evaluate(pageFunction[, arg])](https://playwright.dev/docs/api/class-page#pageevaluatepagefunction-arg) returns a+ * [Promise], then+ * [page.evaluate(pageFunction[, arg])](https://playwright.dev/docs/api/class-page#pageevaluatepagefunction-arg) would wait+ * for the promise to resolve and return its value.** If the function passed to the- * [page.evaluate(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pageevaluate) returns a- * non-[Serializable] value, then[ method: `Page.evaluate`] resolves to `undefined`. DevTools Protocol also supports- * transferring some additional values that are not serializable by `JSON`: `-0`, `NaN`, `Infinity`, `-Infinity`, and- * bigint literals.+ * [page.evaluate(pageFunction[, arg])](https://playwright.dev/docs/api/class-page#pageevaluatepagefunction-arg) returns a+ * non-[Serializable] value, then+ * [page.evaluate(pageFunction[, arg])](https://playwright.dev/docs/api/class-page#pageevaluatepagefunction-arg) resolves+ * to `undefined`. DevTools Protocol also supports transferring some additional values that are not serializable by `JSON`:+ * `-0`, `NaN`, `Infinity`, `-Infinity`, and bigint literals.** Passing argument to `pageFunction`:*@@ -104,7 +106,7 @@ export interface Page {* ```** [ElementHandle] instances can be passed as an argument to the- * [page.evaluate(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pageevaluate):+ * [page.evaluate(pageFunction[, arg])](https://playwright.dev/docs/api/class-page#pageevaluatepagefunction-arg):** ```js* const bodyHandle = await page.$('body');@@ -113,7 +115,7 @@ export interface Page {* ```** Shortcut for main frame's- * [frame.evaluate(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#frameevaluate).+ * [frame.evaluate(pageFunction[, arg])](https://playwright.dev/docs/api/class-frame#frameevaluatepagefunction-arg).* @param pageFunction Function to be evaluated in the page context* @param arg Optional argument to pass to `pageFunction`*/@@ -124,16 +126,17 @@ export interface Page {* Returns the value of the `pageFunction` invocation as in-page object (JSHandle).** The only difference between- * [page.evaluate(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pageevaluate) and- * [page.evaluateHandle(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pageevaluatehandle) is that- * [page.evaluateHandle(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pageevaluatehandle) returns- * in-page object (JSHandle).+ * [page.evaluate(pageFunction[, arg])](https://playwright.dev/docs/api/class-page#pageevaluatepagefunction-arg) and+ * [page.evaluateHandle(pageFunction[, arg])](https://playwright.dev/docs/api/class-page#pageevaluatehandlepagefunction-arg)+ * is that+ * [page.evaluateHandle(pageFunction[, arg])](https://playwright.dev/docs/api/class-page#pageevaluatehandlepagefunction-arg)+ * returns in-page object (JSHandle).** If the function passed to the- * [page.evaluateHandle(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pageevaluatehandle) returns a- * [Promise], then- * [page.evaluateHandle(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pageevaluatehandle) would wait- * for the promise to resolve and return its value.+ * [page.evaluateHandle(pageFunction[, arg])](https://playwright.dev/docs/api/class-page#pageevaluatehandlepagefunction-arg)+ * returns a [Promise], then+ * [page.evaluateHandle(pageFunction[, arg])](https://playwright.dev/docs/api/class-page#pageevaluatehandlepagefunction-arg)+ * would wait for the promise to resolve and return its value.** ```js* const aWindowHandle = await page.evaluateHandle(() => Promise.resolve(window));@@ -147,7 +150,7 @@ export interface Page {* ```** [JSHandle] instances can be passed as an argument to the- * [page.evaluateHandle(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pageevaluatehandle):+ * [page.evaluateHandle(pageFunction[, arg])](https://playwright.dev/docs/api/class-page#pageevaluatehandlepagefunction-arg):** ```js* const aHandle = await page.evaluateHandle(() => document.body);@@ -166,8 +169,8 @@ export interface Page {* The method finds an element matching the specified selector within the page. If no elements match the selector, the* return value resolves to `null`.*- * Shortcut for main frame's [frame.$(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#frame).- * @param selector A selector to query for. See [working with selectors](https://github.com/microsoft/playwright/blob/master/docs/selectors.md#working-with-selectors) for more details.+ * Shortcut for main frame's [frame.$(selector)](https://playwright.dev/docs/api/class-frame#frameselector).+ * @param selector A selector to query for. See [working with selectors](https://playwright.dev/docs/selectors) for more details.*/$<K extends keyof HTMLElementTagNameMap>(selector: K): Promise<ElementHandleForTag<K> | null>;$(selector: string): Promise<ElementHandle<SVGElement | HTMLElement> | null>;@@ -176,8 +179,8 @@ export interface Page {* The method finds all elements matching the specified selector within the page. If no elements match the selector, the* return value resolves to `[]`.*- * Shortcut for main frame's [frame.$$(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#frame).- * @param selector A selector to query for. See [working with selectors](https://github.com/microsoft/playwright/blob/master/docs/selectors.md#working-with-selectors) for more details.+ * Shortcut for main frame's [frame.$$(selector)](https://playwright.dev/docs/api/class-frame#frameselector).+ * @param selector A selector to query for. See [working with selectors](https://playwright.dev/docs/selectors) for more details.*/$$<K extends keyof HTMLElementTagNameMap>(selector: K): Promise<ElementHandleForTag<K>[]>;$$(selector: string): Promise<ElementHandle<SVGElement | HTMLElement>[]>;@@ -187,8 +190,8 @@ export interface Page {* `pageFunction`. If no elements match the selector, the method throws an error. Returns the value of `pageFunction`.** If `pageFunction` returns a [Promise], then- * [page.$eval(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pageeval) would wait for the promise to- * resolve and return its value.+ * [page.$eval(selector, pageFunction[, arg])](https://playwright.dev/docs/api/class-page#pageevalselector-pagefunction-arg)+ * would wait for the promise to resolve and return its value.** Examples:*@@ -198,8 +201,9 @@ export interface Page {* const html = await page.$eval('.main-container', (e, suffix) => e.outerHTML + suffix, 'hello');* ```*- * Shortcut for main frame's [frame.$eval(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#frameeval).- * @param selector A selector to query for. See [working with selectors](https://github.com/microsoft/playwright/blob/master/docs/selectors.md#working-with-selectors) for more details.+ * Shortcut for main frame's+ * [frame.$eval(selector, pageFunction[, arg])](https://playwright.dev/docs/api/class-frame#frameevalselector-pagefunction-arg).+ * @param selector A selector to query for. See [working with selectors](https://playwright.dev/docs/selectors) for more details.* @param pageFunction Function to be evaluated in browser context* @param arg Optional argument to pass to `pageFunction`*/@@ -213,8 +217,8 @@ export interface Page {* a first argument to `pageFunction`. Returns the result of `pageFunction` invocation.** If `pageFunction` returns a [Promise], then- * [page.$$eval(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pageeval) would wait for the promise to- * resolve and return its value.+ * [page.$$eval(selector, pageFunction[, arg])](https://playwright.dev/docs/api/class-page#pageevalselector-pagefunction-arg)+ * would wait for the promise to resolve and return its value.** Examples:*@@ -222,7 +226,7 @@ export interface Page {* const divCounts = await page.$$eval('div', (divs, min) => divs.length >= min, 10);* ```*- * @param selector A selector to query for. See [working with selectors](https://github.com/microsoft/playwright/blob/master/docs/selectors.md#working-with-selectors) for more details.+ * @param selector A selector to query for. See [working with selectors](https://playwright.dev/docs/selectors) for more details.* @param pageFunction Function to be evaluated in browser context* @param arg Optional argument to pass to `pageFunction`*/@@ -234,7 +238,9 @@ export interface Page {/*** Returns when the `pageFunction` returns a truthy value. It resolves to a JSHandle of the truthy value.*- * The `waitForFunction` can be used to observe viewport size change:+ * The+ * [page.waitForFunction(pageFunction[, arg, options])](https://playwright.dev/docs/api/class-page#pagewaitforfunctionpagefunction-arg-options)+ * can be used to observe viewport size change:** ```js* const { webkit } = require('playwright'); // Or 'chromium' or 'firefox'.@@ -250,7 +256,8 @@ export interface Page {* ```** To pass an argument to the predicate of- * [page.waitForFunction(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagewaitforfunction) function:+ * [page.waitForFunction(pageFunction[, arg, options])](https://playwright.dev/docs/api/class-page#pagewaitforfunctionpagefunction-arg-options)+ * function:** ```js* const selector = '.foo';@@ -258,7 +265,7 @@ export interface Page {* ```** Shortcut for main frame's- * [frame.waitForFunction(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#framewaitforfunction).+ * [frame.waitForFunction(pageFunction[, arg, options])](https://playwright.dev/docs/api/class-frame#framewaitforfunctionpagefunction-arg-options).* @param pageFunction Function to be evaluated in browser context* @param arg Optional argument to pass to `pageFunction`* @param options@@ -291,7 +298,7 @@ export interface Page {* })();* ```*- * @param selector A selector to query for. See [working with selectors](https://github.com/microsoft/playwright/blob/master/docs/selectors.md#working-with-selectors) for more details.+ * @param selector A selector to query for. See [working with selectors](https://playwright.dev/docs/selectors) for more details.* @param options*/waitForSelector<K extends keyof HTMLElementTagNameMap>(selector: K, options?: PageWaitForSelectorOptionsNotHidden): Promise<ElementHandleForTag<K>>;@@ -308,12 +315,12 @@ export interface Page {* page: Page, frame: Frame }`.** See- * [browserContext.exposeBinding(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextexposebinding)+ * [browserContext.exposeBinding(name, callback[, options])](https://playwright.dev/docs/api/class-browsercontext#browsercontextexposebindingname-callback-options)* for the context-wide version.** > NOTE: Functions installed via- * [page.exposeBinding(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pageexposebinding) survive- * navigations.+ * [page.exposeBinding(name, callback[, options])](https://playwright.dev/docs/api/class-page#pageexposebindingname-callback-options)+ * survive navigations.** An example of exposing page URL to all frames in a page:*@@ -405,8 +412,8 @@ export interface Page {/*** Emitted when a JavaScript dialog appears, such as `alert`, `prompt`, `confirm` or `beforeunload`. Playwright can respond- * to the dialog via [dialog.accept(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#dialogaccept) or- * [dialog.dismiss(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#dialogdismiss) methods.+ * to the dialog via [dialog.accept([promptText])](https://playwright.dev/docs/api/class-dialog#dialogacceptprompttext) or+ * [dialog.dismiss()](https://playwright.dev/docs/api/class-dialog#dialogdismiss) methods.*/on(event: 'dialog', listener: (dialog: Dialog) => void): this;@@ -429,8 +436,8 @@ export interface Page {/*** Emitted when a file chooser is supposed to appear, such as after clicking the `<input type=file>`. Playwright can* respond to it via setting the input files using- * [fileChooser.setFiles(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#filechoosersetfiles) that can- * be uploaded after that.+ * [fileChooser.setFiles(files[, options])](https://playwright.dev/docs/api/class-filechooser#filechoosersetfilesfiles-options)+ * that can be uploaded after that.** ```js* page.on('filechooser', async (fileChooser) => {@@ -468,8 +475,8 @@ export interface Page {/*** Emitted when the page opens a new tab or window. This event is emitted in addition to the- * [browserContext.on('page')](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextonpage), but- * only for popups relevant to this page.+ * [browserContext.on('page')](https://playwright.dev/docs/api/class-browsercontext#browsercontextonpage), but only for+ * popups relevant to this page.** The earliest moment that page is available is when it has navigated to the initial url. For example, when opening a* popup with `window.open('http://example.com')`, this event will fire when the network request to "http://example.com" is@@ -484,15 +491,15 @@ export interface Page {* ```** > NOTE: Use- * [page.waitForLoadState(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagewaitforloadstate) to wait- * until the page gets to a particular state (you should not need it in most cases).+ * [page.waitForLoadState([state, options])](https://playwright.dev/docs/api/class-page#pagewaitforloadstatestate-options)+ * to wait until the page gets to a particular state (you should not need it in most cases).*/on(event: 'popup', listener: (page: Page) => void): this;/*** Emitted when a page issues a request. The [request] object is read-only. In order to intercept and mutate requests, see- * [page.route(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pageroute) or- * [browserContext.route(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextroute).+ * [page.route(url, handler)](https://playwright.dev/docs/api/class-page#pagerouteurl-handler) or+ * [browserContext.route(url, handler)](https://playwright.dev/docs/api/class-browsercontext#browsercontextrouteurl-handler).*/on(event: 'request', listener: (request: Request) => void): this;@@ -500,10 +507,8 @@ export interface Page {* Emitted when a request fails, for example by timing out.** > NOTE: HTTP Error responses, such as 404 or 503, are still successful responses from HTTP standpoint, so request will- * complete with- * [page.on('requestfinished')](https://github.com/microsoft/playwright/blob/master/docs/api.md#pageonrequestfinished)- * event and not with- * [page.on('requestfailed')](https://github.com/microsoft/playwright/blob/master/docs/api.md#pageonrequestfailed).+ * complete with [page.on('requestfinished')](https://playwright.dev/docs/api/class-page#pageonrequestfinished) event and+ * not with [page.on('requestfailed')](https://playwright.dev/docs/api/class-page#pageonrequestfailed).*/on(event: 'requestfailed', listener: (request: Request) => void): this;@@ -576,8 +581,8 @@ export interface Page {/*** Emitted when a JavaScript dialog appears, such as `alert`, `prompt`, `confirm` or `beforeunload`. Playwright can respond- * to the dialog via [dialog.accept(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#dialogaccept) or- * [dialog.dismiss(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#dialogdismiss) methods.+ * to the dialog via [dialog.accept([promptText])](https://playwright.dev/docs/api/class-dialog#dialogacceptprompttext) or+ * [dialog.dismiss()](https://playwright.dev/docs/api/class-dialog#dialogdismiss) methods.*/once(event: 'dialog', listener: (dialog: Dialog) => void): this;@@ -600,8 +605,8 @@ export interface Page {/*** Emitted when a file chooser is supposed to appear, such as after clicking the `<input type=file>`. Playwright can* respond to it via setting the input files using- * [fileChooser.setFiles(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#filechoosersetfiles) that can- * be uploaded after that.+ * [fileChooser.setFiles(files[, options])](https://playwright.dev/docs/api/class-filechooser#filechoosersetfilesfiles-options)+ * that can be uploaded after that.** ```js* page.on('filechooser', async (fileChooser) => {@@ -639,8 +644,8 @@ export interface Page {/*** Emitted when the page opens a new tab or window. This event is emitted in addition to the- * [browserContext.on('page')](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextonpage), but- * only for popups relevant to this page.+ * [browserContext.on('page')](https://playwright.dev/docs/api/class-browsercontext#browsercontextonpage), but only for+ * popups relevant to this page.** The earliest moment that page is available is when it has navigated to the initial url. For example, when opening a* popup with `window.open('http://example.com')`, this event will fire when the network request to "http://example.com" is@@ -655,15 +660,15 @@ export interface Page {* ```** > NOTE: Use- * [page.waitForLoadState(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagewaitforloadstate) to wait- * until the page gets to a particular state (you should not need it in most cases).+ * [page.waitForLoadState([state, options])](https://playwright.dev/docs/api/class-page#pagewaitforloadstatestate-options)+ * to wait until the page gets to a particular state (you should not need it in most cases).*/once(event: 'popup', listener: (page: Page) => void): this;/*** Emitted when a page issues a request. The [request] object is read-only. In order to intercept and mutate requests, see- * [page.route(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pageroute) or- * [browserContext.route(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextroute).+ * [page.route(url, handler)](https://playwright.dev/docs/api/class-page#pagerouteurl-handler) or+ * [browserContext.route(url, handler)](https://playwright.dev/docs/api/class-browsercontext#browsercontextrouteurl-handler).*/once(event: 'request', listener: (request: Request) => void): this;@@ -671,10 +676,8 @@ export interface Page {* Emitted when a request fails, for example by timing out.** > NOTE: HTTP Error responses, such as 404 or 503, are still successful responses from HTTP standpoint, so request will- * complete with- * [page.on('requestfinished')](https://github.com/microsoft/playwright/blob/master/docs/api.md#pageonrequestfinished)- * event and not with- * [page.on('requestfailed')](https://github.com/microsoft/playwright/blob/master/docs/api.md#pageonrequestfailed).+ * complete with [page.on('requestfinished')](https://playwright.dev/docs/api/class-page#pageonrequestfinished) event and+ * not with [page.on('requestfailed')](https://playwright.dev/docs/api/class-page#pageonrequestfailed).*/once(event: 'requestfailed', listener: (request: Request) => void): this;@@ -747,8 +750,8 @@ export interface Page {/*** Emitted when a JavaScript dialog appears, such as `alert`, `prompt`, `confirm` or `beforeunload`. Playwright can respond- * to the dialog via [dialog.accept(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#dialogaccept) or- * [dialog.dismiss(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#dialogdismiss) methods.+ * to the dialog via [dialog.accept([promptText])](https://playwright.dev/docs/api/class-dialog#dialogacceptprompttext) or+ * [dialog.dismiss()](https://playwright.dev/docs/api/class-dialog#dialogdismiss) methods.*/addListener(event: 'dialog', listener: (dialog: Dialog) => void): this;@@ -771,8 +774,8 @@ export interface Page {/*** Emitted when a file chooser is supposed to appear, such as after clicking the `<input type=file>`. Playwright can* respond to it via setting the input files using- * [fileChooser.setFiles(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#filechoosersetfiles) that can- * be uploaded after that.+ * [fileChooser.setFiles(files[, options])](https://playwright.dev/docs/api/class-filechooser#filechoosersetfilesfiles-options)+ * that can be uploaded after that.** ```js* page.on('filechooser', async (fileChooser) => {@@ -810,8 +813,8 @@ export interface Page {/*** Emitted when the page opens a new tab or window. This event is emitted in addition to the- * [browserContext.on('page')](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextonpage), but- * only for popups relevant to this page.+ * [browserContext.on('page')](https://playwright.dev/docs/api/class-browsercontext#browsercontextonpage), but only for+ * popups relevant to this page.** The earliest moment that page is available is when it has navigated to the initial url. For example, when opening a* popup with `window.open('http://example.com')`, this event will fire when the network request to "http://example.com" is@@ -826,15 +829,15 @@ export interface Page {* ```** > NOTE: Use- * [page.waitForLoadState(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagewaitforloadstate) to wait- * until the page gets to a particular state (you should not need it in most cases).+ * [page.waitForLoadState([state, options])](https://playwright.dev/docs/api/class-page#pagewaitforloadstatestate-options)+ * to wait until the page gets to a particular state (you should not need it in most cases).*/addListener(event: 'popup', listener: (page: Page) => void): this;/*** Emitted when a page issues a request. The [request] object is read-only. In order to intercept and mutate requests, see- * [page.route(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pageroute) or- * [browserContext.route(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextroute).+ * [page.route(url, handler)](https://playwright.dev/docs/api/class-page#pagerouteurl-handler) or+ * [browserContext.route(url, handler)](https://playwright.dev/docs/api/class-browsercontext#browsercontextrouteurl-handler).*/addListener(event: 'request', listener: (request: Request) => void): this;@@ -842,10 +845,8 @@ export interface Page {* Emitted when a request fails, for example by timing out.** > NOTE: HTTP Error responses, such as 404 or 503, are still successful responses from HTTP standpoint, so request will- * complete with- * [page.on('requestfinished')](https://github.com/microsoft/playwright/blob/master/docs/api.md#pageonrequestfinished)- * event and not with- * [page.on('requestfailed')](https://github.com/microsoft/playwright/blob/master/docs/api.md#pageonrequestfailed).+ * complete with [page.on('requestfinished')](https://playwright.dev/docs/api/class-page#pageonrequestfinished) event and+ * not with [page.on('requestfailed')](https://playwright.dev/docs/api/class-page#pageonrequestfailed).*/addListener(event: 'requestfailed', listener: (request: Request) => void): this;@@ -918,8 +919,8 @@ export interface Page {/*** Emitted when a JavaScript dialog appears, such as `alert`, `prompt`, `confirm` or `beforeunload`. Playwright can respond- * to the dialog via [dialog.accept(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#dialogaccept) or- * [dialog.dismiss(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#dialogdismiss) methods.+ * to the dialog via [dialog.accept([promptText])](https://playwright.dev/docs/api/class-dialog#dialogacceptprompttext) or+ * [dialog.dismiss()](https://playwright.dev/docs/api/class-dialog#dialogdismiss) methods.*/removeListener(event: 'dialog', listener: (dialog: Dialog) => void): this;@@ -942,8 +943,8 @@ export interface Page {/*** Emitted when a file chooser is supposed to appear, such as after clicking the `<input type=file>`. Playwright can* respond to it via setting the input files using- * [fileChooser.setFiles(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#filechoosersetfiles) that can- * be uploaded after that.+ * [fileChooser.setFiles(files[, options])](https://playwright.dev/docs/api/class-filechooser#filechoosersetfilesfiles-options)+ * that can be uploaded after that.** ```js* page.on('filechooser', async (fileChooser) => {@@ -981,8 +982,8 @@ export interface Page {/*** Emitted when the page opens a new tab or window. This event is emitted in addition to the- * [browserContext.on('page')](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextonpage), but- * only for popups relevant to this page.+ * [browserContext.on('page')](https://playwright.dev/docs/api/class-browsercontext#browsercontextonpage), but only for+ * popups relevant to this page.** The earliest moment that page is available is when it has navigated to the initial url. For example, when opening a* popup with `window.open('http://example.com')`, this event will fire when the network request to "http://example.com" is@@ -997,15 +998,15 @@ export interface Page {* ```** > NOTE: Use- * [page.waitForLoadState(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagewaitforloadstate) to wait- * until the page gets to a particular state (you should not need it in most cases).+ * [page.waitForLoadState([state, options])](https://playwright.dev/docs/api/class-page#pagewaitforloadstatestate-options)+ * to wait until the page gets to a particular state (you should not need it in most cases).*/removeListener(event: 'popup', listener: (page: Page) => void): this;/*** Emitted when a page issues a request. The [request] object is read-only. In order to intercept and mutate requests, see- * [page.route(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pageroute) or- * [browserContext.route(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextroute).+ * [page.route(url, handler)](https://playwright.dev/docs/api/class-page#pagerouteurl-handler) or+ * [browserContext.route(url, handler)](https://playwright.dev/docs/api/class-browsercontext#browsercontextrouteurl-handler).*/removeListener(event: 'request', listener: (request: Request) => void): this;@@ -1013,10 +1014,8 @@ export interface Page {* Emitted when a request fails, for example by timing out.** > NOTE: HTTP Error responses, such as 404 or 503, are still successful responses from HTTP standpoint, so request will- * complete with- * [page.on('requestfinished')](https://github.com/microsoft/playwright/blob/master/docs/api.md#pageonrequestfinished)- * event and not with- * [page.on('requestfailed')](https://github.com/microsoft/playwright/blob/master/docs/api.md#pageonrequestfailed).+ * complete with [page.on('requestfinished')](https://playwright.dev/docs/api/class-page#pageonrequestfinished) event and+ * not with [page.on('requestfailed')](https://playwright.dev/docs/api/class-page#pageonrequestfailed).*/removeListener(event: 'requestfailed', listener: (request: Request) => void): this;@@ -1089,8 +1088,8 @@ export interface Page {/*** Emitted when a JavaScript dialog appears, such as `alert`, `prompt`, `confirm` or `beforeunload`. Playwright can respond- * to the dialog via [dialog.accept(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#dialogaccept) or- * [dialog.dismiss(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#dialogdismiss) methods.+ * to the dialog via [dialog.accept([promptText])](https://playwright.dev/docs/api/class-dialog#dialogacceptprompttext) or+ * [dialog.dismiss()](https://playwright.dev/docs/api/class-dialog#dialogdismiss) methods.*/off(event: 'dialog', listener: (dialog: Dialog) => void): this;@@ -1113,8 +1112,8 @@ export interface Page {/*** Emitted when a file chooser is supposed to appear, such as after clicking the `<input type=file>`. Playwright can* respond to it via setting the input files using- * [fileChooser.setFiles(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#filechoosersetfiles) that can- * be uploaded after that.+ * [fileChooser.setFiles(files[, options])](https://playwright.dev/docs/api/class-filechooser#filechoosersetfilesfiles-options)+ * that can be uploaded after that.** ```js* page.on('filechooser', async (fileChooser) => {@@ -1152,8 +1151,8 @@ export interface Page {/*** Emitted when the page opens a new tab or window. This event is emitted in addition to the- * [browserContext.on('page')](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextonpage), but- * only for popups relevant to this page.+ * [browserContext.on('page')](https://playwright.dev/docs/api/class-browsercontext#browsercontextonpage), but only for+ * popups relevant to this page.** The earliest moment that page is available is when it has navigated to the initial url. For example, when opening a* popup with `window.open('http://example.com')`, this event will fire when the network request to "http://example.com" is@@ -1168,15 +1167,15 @@ export interface Page {* ```** > NOTE: Use- * [page.waitForLoadState(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagewaitforloadstate) to wait- * until the page gets to a particular state (you should not need it in most cases).+ * [page.waitForLoadState([state, options])](https://playwright.dev/docs/api/class-page#pagewaitforloadstatestate-options)+ * to wait until the page gets to a particular state (you should not need it in most cases).*/off(event: 'popup', listener: (page: Page) => void): this;/*** Emitted when a page issues a request. The [request] object is read-only. In order to intercept and mutate requests, see- * [page.route(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pageroute) or- * [browserContext.route(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextroute).+ * [page.route(url, handler)](https://playwright.dev/docs/api/class-page#pagerouteurl-handler) or+ * [browserContext.route(url, handler)](https://playwright.dev/docs/api/class-browsercontext#browsercontextrouteurl-handler).*/off(event: 'request', listener: (request: Request) => void): this;@@ -1184,10 +1183,8 @@ export interface Page {* Emitted when a request fails, for example by timing out.** > NOTE: HTTP Error responses, such as 404 or 503, are still successful responses from HTTP standpoint, so request will- * complete with- * [page.on('requestfinished')](https://github.com/microsoft/playwright/blob/master/docs/api.md#pageonrequestfinished)- * event and not with- * [page.on('requestfailed')](https://github.com/microsoft/playwright/blob/master/docs/api.md#pageonrequestfailed).+ * complete with [page.on('requestfinished')](https://playwright.dev/docs/api/class-page#pageonrequestfinished) event and+ * not with [page.on('requestfailed')](https://playwright.dev/docs/api/class-page#pageonrequestfailed).*/off(event: 'requestfailed', listener: (request: Request) => void): this;@@ -1238,8 +1235,8 @@ export interface Page {* ```** > NOTE: The order of evaluation of multiple scripts installed via- * [browserContext.addInitScript(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextaddinitscript)- * and [page.addInitScript(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pageaddinitscript) is not+ * [browserContext.addInitScript(script[, arg])](https://playwright.dev/docs/api/class-browsercontext#browsercontextaddinitscriptscript-arg)+ * and [page.addInitScript(script[, arg])](https://playwright.dev/docs/api/class-page#pageaddinitscriptscript-arg) is not* defined.* @param script Script to be evaluated in the page.* @param arg Optional argument to pass to `script` (only supported when passing a function).@@ -1262,7 +1259,7 @@ export interface Page {* fires or when the script content was injected into frame.** Shortcut for main frame's- * [frame.addScriptTag(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#frameaddscripttag).+ * [frame.addScriptTag([options])](https://playwright.dev/docs/api/class-frame#frameaddscripttagoptions).* @param options*/addScriptTag(options?: {@@ -1294,7 +1291,7 @@ export interface Page {* content. Returns the added tag when the stylesheet's onload fires or when the CSS content was injected into frame.** Shortcut for main frame's- * [frame.addStyleTag(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#frameaddstyletag).+ * [frame.addStyleTag([options])](https://playwright.dev/docs/api/class-frame#frameaddstyletagoptions).* @param options*/addStyleTag(options?: {@@ -1325,24 +1322,24 @@ export interface Page {* 1. Find an element match matching `selector`. If there is none, wait until a matching element is attached to the DOM.* 1. Ensure that matched element is a checkbox or a radio input. If not, this method rejects. If the element is already* checked, this method returns immediately.- * 1. Wait for [actionability](https://github.com/microsoft/playwright/blob/master/docs/actionability.md) checks on the matched element, unless `force` option is set. If the+ * 1. Wait for [actionability](https://playwright.dev/docs/actionability) checks on the matched element, unless `force` option is set. If the* element is detached during the checks, the whole action is retried.* 1. Scroll the element into view if needed.- * 1. Use [page.mouse](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagemouse) to click in the center- * of the element.+ * 1. Use [page.mouse](https://playwright.dev/docs/api/class-page#pagemouse) to click in the center of the element.* 1. Wait for initiated navigations to either succeed or fail, unless `noWaitAfter` option is set.* 1. Ensure that the element is now checked. If not, this method rejects.** When all steps combined have not finished during the specified `timeout`, this method rejects with a [TimeoutError].* Passing zero timeout disables this.*- * Shortcut for main frame's [frame.check(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#framecheck).- * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://github.com/microsoft/playwright/blob/master/docs/selectors.md#working-with-selectors) for more details.+ * Shortcut for main frame's+ * [frame.check(selector[, options])](https://playwright.dev/docs/api/class-frame#framecheckselector-options).+ * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://playwright.dev/docs/selectors) for more details.* @param options*/check(selector: string, options?: {/**- * Whether to bypass the [actionability](https://github.com/microsoft/playwright/blob/master/docs/actionability.md) checks. Defaults to `false`.+ * Whether to bypass the [actionability](https://playwright.dev/docs/actionability) checks. Defaults to `false`.*/force?: boolean;@@ -1356,9 +1353,8 @@ export interface Page {/*** Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by* using the- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;}): Promise<void>;@@ -1366,18 +1362,19 @@ export interface Page {/*** This method clicks an element matching `selector` by performing the following steps:* 1. Find an element match matching `selector`. If there is none, wait until a matching element is attached to the DOM.- * 1. Wait for [actionability](https://github.com/microsoft/playwright/blob/master/docs/actionability.md) checks on the matched element, unless `force` option is set. If the+ * 1. Wait for [actionability](https://playwright.dev/docs/actionability) checks on the matched element, unless `force` option is set. If the* element is detached during the checks, the whole action is retried.* 1. Scroll the element into view if needed.- * 1. Use [page.mouse](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagemouse) to click in the center- * of the element, or the specified `position`.+ * 1. Use [page.mouse](https://playwright.dev/docs/api/class-page#pagemouse) to click in the center of the element, or+ * the specified `position`.* 1. Wait for initiated navigations to either succeed or fail, unless `noWaitAfter` option is set.** When all steps combined have not finished during the specified `timeout`, this method rejects with a [TimeoutError].* Passing zero timeout disables this.*- * Shortcut for main frame's [frame.click(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#frameclick).- * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://github.com/microsoft/playwright/blob/master/docs/selectors.md#working-with-selectors) for more details.+ * Shortcut for main frame's+ * [frame.click(selector[, options])](https://playwright.dev/docs/api/class-frame#frameclickselector-options).+ * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://playwright.dev/docs/selectors) for more details.* @param options*/click(selector: string, options?: {@@ -1397,7 +1394,7 @@ export interface Page {delay?: number;/**- * Whether to bypass the [actionability](https://github.com/microsoft/playwright/blob/master/docs/actionability.md) checks. Defaults to `false`.+ * Whether to bypass the [actionability](https://playwright.dev/docs/actionability) checks. Defaults to `false`.*/force?: boolean;@@ -1427,9 +1424,8 @@ export interface Page {/*** Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by* using the- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;}): Promise<void>;@@ -1441,7 +1437,7 @@ export interface Page {* By default, `page.close()` **does not** run `beforeunload` handlers.** > NOTE: if `runBeforeUnload` is passed as true, a `beforeunload` dialog might be summoned and should be handled manually- * via [page.on('dialog')](https://github.com/microsoft/playwright/blob/master/docs/api.md#pageondialog) event.+ * via [page.on('dialog')](https://playwright.dev/docs/api/class-page#pageondialog) event.* @param options*/close(options?: {@@ -1464,18 +1460,18 @@ export interface Page {/*** Browser-specific Coverage implementation, only available for Chromium atm. See- * [ChromiumCoverage](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumcoverage) for more details.+ * [ChromiumCoverage](#class-chromiumcoverage) for more details.*/coverage: null|ChromiumCoverage;/*** This method double clicks an element matching `selector` by performing the following steps:* 1. Find an element match matching `selector`. If there is none, wait until a matching element is attached to the DOM.- * 1. Wait for [actionability](https://github.com/microsoft/playwright/blob/master/docs/actionability.md) checks on the matched element, unless `force` option is set. If the+ * 1. Wait for [actionability](https://playwright.dev/docs/actionability) checks on the matched element, unless `force` option is set. If the* element is detached during the checks, the whole action is retried.* 1. Scroll the element into view if needed.- * 1. Use [page.mouse](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagemouse) to double click in the- * center of the element, or the specified `position`.+ * 1. Use [page.mouse](https://playwright.dev/docs/api/class-page#pagemouse) to double click in the center of the+ * element, or the specified `position`.* 1. Wait for initiated navigations to either succeed or fail, unless `noWaitAfter` option is set. Note that if the* first click of the `dblclick()` triggers a navigation event, this method will reject.*@@ -1485,8 +1481,8 @@ export interface Page {* > NOTE: `page.dblclick()` dispatches two `click` events and a single `dblclick` event.** Shortcut for main frame's- * [frame.dblclick(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#framedblclick).- * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://github.com/microsoft/playwright/blob/master/docs/selectors.md#working-with-selectors) for more details.+ * [frame.dblclick(selector[, options])](https://playwright.dev/docs/api/class-frame#framedblclickselector-options).+ * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://playwright.dev/docs/selectors) for more details.* @param options*/dblclick(selector: string, options?: {@@ -1501,7 +1497,7 @@ export interface Page {delay?: number;/**- * Whether to bypass the [actionability](https://github.com/microsoft/playwright/blob/master/docs/actionability.md) checks. Defaults to `false`.+ * Whether to bypass the [actionability](https://playwright.dev/docs/actionability) checks. Defaults to `false`.*/force?: boolean;@@ -1531,9 +1527,8 @@ export interface Page {/*** Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by* using the- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;}): Promise<void>;@@ -1567,7 +1562,7 @@ export interface Page {* await page.dispatchEvent('#source', 'dragstart', { dataTransfer });* ```*- * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://github.com/microsoft/playwright/blob/master/docs/selectors.md#working-with-selectors) for more details.+ * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://playwright.dev/docs/selectors) for more details.* @param type DOM event type: `"click"`, `"dragstart"`, etc.* @param eventInit Optional event-specific initialization properties.* @param options@@ -1576,9 +1571,8 @@ export interface Page {/*** Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by* using the- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;}): Promise<void>;@@ -1637,12 +1631,12 @@ export interface Page {* If the `callback` returns a [Promise], it will be awaited.** See- * [browserContext.exposeFunction(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextexposefunction)+ * [browserContext.exposeFunction(name, callback)](https://playwright.dev/docs/api/class-browsercontext#browsercontextexposefunctionname-callback)* for context-wide exposed function.** > NOTE: Functions installed via- * [page.exposeFunction(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pageexposefunction) survive- * navigations.+ * [page.exposeFunction(name, callback)](https://playwright.dev/docs/api/class-page#pageexposefunctionname-callback)+ * survive navigations.** An example of adding an `sha1` function to the page:*@@ -1673,16 +1667,17 @@ export interface Page {exposeFunction(name: string, callback: Function): Promise<void>;/**- * This method waits for an element matching `selector`, waits for [actionability](https://github.com/microsoft/playwright/blob/master/docs/actionability.md) checks, focuses the+ * This method waits for an element matching `selector`, waits for [actionability](https://playwright.dev/docs/actionability) checks, focuses the* element, fills it and triggers an `input` event after filling. If the element matching `selector` is not an `<input>`,* `<textarea>` or `[contenteditable]` element, this method throws an error. Note that you can pass an empty string to* clear the input field.** To send fine-grained keyboard events, use- * [page.type(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagetype).+ * [page.type(selector, text[, options])](https://playwright.dev/docs/api/class-page#pagetypeselector-text-options).*- * Shortcut for main frame's [frame.fill(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#framefill)- * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://github.com/microsoft/playwright/blob/master/docs/selectors.md#working-with-selectors) for more details.+ * Shortcut for main frame's+ * [frame.fill(selector, value[, options])](https://playwright.dev/docs/api/class-frame#framefillselector-value-options)+ * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://playwright.dev/docs/selectors) for more details.* @param value Value to fill for the `<input>`, `<textarea>` or `[contenteditable]` element.* @param options*/@@ -1697,9 +1692,8 @@ export interface Page {/*** Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by* using the- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;}): Promise<void>;@@ -1708,17 +1702,17 @@ export interface Page {* This method fetches an element with `selector` and focuses it. If there's no element matching `selector`, the method* waits until a matching element appears in the DOM.*- * Shortcut for main frame's [frame.focus(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#framefocus).- * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://github.com/microsoft/playwright/blob/master/docs/selectors.md#working-with-selectors) for more details.+ * Shortcut for main frame's+ * [frame.focus(selector[, options])](https://playwright.dev/docs/api/class-frame#framefocusselector-options).+ * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://playwright.dev/docs/selectors) for more details.* @param options*/focus(selector: string, options?: {/*** Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by* using the- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;}): Promise<void>;@@ -1755,7 +1749,7 @@ export interface Page {/*** Returns element attribute value.- * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://github.com/microsoft/playwright/blob/master/docs/selectors.md#working-with-selectors) for more details.+ * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://playwright.dev/docs/selectors) for more details.* @param name Attribute name to get the value for.* @param options*/@@ -1763,9 +1757,8 @@ export interface Page {/*** Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by* using the- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;}): Promise<null|string>;@@ -1781,11 +1774,10 @@ export interface Page {/*** Maximum operation time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be* changed by using the- * [browserContext.setDefaultNavigationTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaultnavigationtimeout),- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout),- * [page.setDefaultNavigationTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaultnavigationtimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultNavigationTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaultnavigationtimeouttimeout),+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout),+ * [page.setDefaultNavigationTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaultnavigationtimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;@@ -1809,11 +1801,10 @@ export interface Page {/*** Maximum operation time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be* changed by using the- * [browserContext.setDefaultNavigationTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaultnavigationtimeout),- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout),- * [page.setDefaultNavigationTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaultnavigationtimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultNavigationTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaultnavigationtimeouttimeout),+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout),+ * [page.setDefaultNavigationTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaultnavigationtimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;@@ -1839,32 +1830,31 @@ export interface Page {** `page.goto` will not throw an error when any valid HTTP status code is returned by the remote server, including 404 "Not* Found" and 500 "Internal Server Error". The status code for such responses can be retrieved by calling- * [response.status(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#responsestatus).+ * [response.status()](https://playwright.dev/docs/api/class-response#responsestatus).** > NOTE: `page.goto` either throws an error or returns a main resource response. The only exceptions are navigation to* `about:blank` or navigation to the same URL with a different hash, which would succeed and return `null`.* > NOTE: Headless mode doesn't support navigation to a PDF document. See the* [upstream issue](https://bugs.chromium.org/p/chromium/issues/detail?id=761295).*- * Shortcut for main frame's [frame.goto(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#framegoto)+ * Shortcut for main frame's [frame.goto(url[, options])](https://playwright.dev/docs/api/class-frame#framegotourl-options)* @param url URL to navigate page to. The url should include scheme, e.g. `https://`.* @param options*/goto(url: string, options?: {/*** Referer header value. If provided it will take preference over the referer header value set by- * [page.setExtraHTTPHeaders(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetextrahttpheaders).+ * [page.setExtraHTTPHeaders(headers)](https://playwright.dev/docs/api/class-page#pagesetextrahttpheadersheaders).*/referer?: string;/*** Maximum operation time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be* changed by using the- * [browserContext.setDefaultNavigationTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaultnavigationtimeout),- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout),- * [page.setDefaultNavigationTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaultnavigationtimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultNavigationTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaultnavigationtimeouttimeout),+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout),+ * [page.setDefaultNavigationTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaultnavigationtimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;@@ -1880,23 +1870,24 @@ export interface Page {/*** This method hovers over an element matching `selector` by performing the following steps:* 1. Find an element match matching `selector`. If there is none, wait until a matching element is attached to the DOM.- * 1. Wait for [actionability](https://github.com/microsoft/playwright/blob/master/docs/actionability.md) checks on the matched element, unless `force` option is set. If the+ * 1. Wait for [actionability](https://playwright.dev/docs/actionability) checks on the matched element, unless `force` option is set. If the* element is detached during the checks, the whole action is retried.* 1. Scroll the element into view if needed.- * 1. Use [page.mouse](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagemouse) to hover over the- * center of the element, or the specified `position`.+ * 1. Use [page.mouse](https://playwright.dev/docs/api/class-page#pagemouse) to hover over the center of the element, or+ * the specified `position`.* 1. Wait for initiated navigations to either succeed or fail, unless `noWaitAfter` option is set.** When all steps combined have not finished during the specified `timeout`, this method rejects with a [TimeoutError].* Passing zero timeout disables this.*- * Shortcut for main frame's [frame.hover(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#framehover).- * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://github.com/microsoft/playwright/blob/master/docs/selectors.md#working-with-selectors) for more details.+ * Shortcut for main frame's+ * [frame.hover(selector[, options])](https://playwright.dev/docs/api/class-frame#framehoverselector-options).+ * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://playwright.dev/docs/selectors) for more details.* @param options*/hover(selector: string, options?: {/**- * Whether to bypass the [actionability](https://github.com/microsoft/playwright/blob/master/docs/actionability.md) checks. Defaults to `false`.+ * Whether to bypass the [actionability](https://playwright.dev/docs/actionability) checks. Defaults to `false`.*/force?: boolean;@@ -1919,57 +1910,53 @@ export interface Page {/*** Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by* using the- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;}): Promise<void>;/*** Returns `element.innerHTML`.- * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://github.com/microsoft/playwright/blob/master/docs/selectors.md#working-with-selectors) for more details.+ * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://playwright.dev/docs/selectors) for more details.* @param options*/innerHTML(selector: string, options?: {/*** Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by* using the- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;}): Promise<string>;/*** Returns `element.innerText`.- * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://github.com/microsoft/playwright/blob/master/docs/selectors.md#working-with-selectors) for more details.+ * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://playwright.dev/docs/selectors) for more details.* @param options*/innerText(selector: string, options?: {/*** Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by* using the- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;}): Promise<string>;/*** Returns whether the element is checked. Throws if the element is not a checkbox or radio input.- * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://github.com/microsoft/playwright/blob/master/docs/selectors.md#working-with-selectors) for more details.+ * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://playwright.dev/docs/selectors) for more details.* @param options*/isChecked(selector: string, options?: {/*** Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by* using the- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;}): Promise<boolean>;@@ -1980,81 +1967,76 @@ export interface Page {isClosed(): boolean;/**- * Returns whether the element is disabled, the opposite of [enabled](https://github.com/microsoft/playwright/blob/master/docs/actionability.md#enabled).- * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://github.com/microsoft/playwright/blob/master/docs/selectors.md#working-with-selectors) for more details.+ * Returns whether the element is disabled, the opposite of [enabled](https://playwright.dev/docs/actionability#enabled).+ * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://playwright.dev/docs/selectors) for more details.* @param options*/isDisabled(selector: string, options?: {/*** Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by* using the- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;}): Promise<boolean>;/**- * Returns whether the element is [editable](https://github.com/microsoft/playwright/blob/master/docs/actionability.md#editable).- * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://github.com/microsoft/playwright/blob/master/docs/selectors.md#working-with-selectors) for more details.+ * Returns whether the element is [editable](https://playwright.dev/docs/actionability#editable).+ * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://playwright.dev/docs/selectors) for more details.* @param options*/isEditable(selector: string, options?: {/*** Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by* using the- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;}): Promise<boolean>;/**- * Returns whether the element is [enabled](https://github.com/microsoft/playwright/blob/master/docs/actionability.md#enabled).- * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://github.com/microsoft/playwright/blob/master/docs/selectors.md#working-with-selectors) for more details.+ * Returns whether the element is [enabled](https://playwright.dev/docs/actionability#enabled).+ * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://playwright.dev/docs/selectors) for more details.* @param options*/isEnabled(selector: string, options?: {/*** Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by* using the- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;}): Promise<boolean>;/**- * Returns whether the element is hidden, the opposite of [visible](https://github.com/microsoft/playwright/blob/master/docs/actionability.md#visible).- * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://github.com/microsoft/playwright/blob/master/docs/selectors.md#working-with-selectors) for more details.+ * Returns whether the element is hidden, the opposite of [visible](https://playwright.dev/docs/actionability#visible).+ * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://playwright.dev/docs/selectors) for more details.* @param options*/isHidden(selector: string, options?: {/*** Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by* using the- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;}): Promise<boolean>;/**- * Returns whether the element is [visible](https://github.com/microsoft/playwright/blob/master/docs/actionability.md#visible).- * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://github.com/microsoft/playwright/blob/master/docs/selectors.md#working-with-selectors) for more details.+ * Returns whether the element is [visible](https://playwright.dev/docs/actionability#visible).+ * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://playwright.dev/docs/selectors) for more details.* @param options*/isVisible(selector: string, options?: {/*** Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by* using the- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;}): Promise<boolean>;@@ -2079,7 +2061,7 @@ export interface Page {* > NOTE: Generating a pdf is currently only supported in Chromium headless.** `page.pdf()` generates a pdf of the page with `print` css media. To generate a pdf with `screen` media, call- * [page.emulateMedia(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pageemulatemedia) before calling+ * [page.emulateMedia(params)](https://playwright.dev/docs/api/class-page#pageemulatemediaparams) before calling* `page.pdf()`:** > NOTE: By default, `page.pdf()` generates a pdf with modified colors for printing. Use the@@ -2218,9 +2200,8 @@ export interface Page {}): Promise<Buffer>;/**- * Focuses the element, and then uses- * [keyboard.down(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#keyboarddown) and- * [keyboard.up(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#keyboardup).+ * Focuses the element, and then uses [keyboard.down(key)](https://playwright.dev/docs/api/class-keyboard#keyboarddownkey)+ * and [keyboard.up(key)](https://playwright.dev/docs/api/class-keyboard#keyboardupkey).** `key` can specify the intended [keyboardEvent.key](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key)* value or a single character to generate the text for. A superset of the `key` values can be found@@ -2251,7 +2232,7 @@ export interface Page {* await browser.close();* ```*- * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://github.com/microsoft/playwright/blob/master/docs/selectors.md#working-with-selectors) for more details.+ * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://playwright.dev/docs/selectors) for more details.* @param key Name of the key to press or a character to generate, such as `ArrowLeft` or `a`.* @param options*/@@ -2271,9 +2252,8 @@ export interface Page {/*** Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by* using the- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;}): Promise<void>;@@ -2287,11 +2267,10 @@ export interface Page {/*** Maximum operation time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be* changed by using the- * [browserContext.setDefaultNavigationTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaultnavigationtimeout),- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout),- * [page.setDefaultNavigationTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaultnavigationtimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultNavigationTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaultnavigationtimeouttimeout),+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout),+ * [page.setDefaultNavigationTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaultnavigationtimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;@@ -2330,8 +2309,8 @@ export interface Page {* ```** Page routes take precedence over browser context routes (set up with- * [browserContext.route(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextroute)) when- * request matches both handlers.+ * [browserContext.route(url, handler)](https://playwright.dev/docs/api/class-browsercontext#browsercontextrouteurl-handler))+ * when request matches both handlers.** > NOTE: Enabling routing disables http cache.* @param url A glob pattern, regex pattern or predicate receiving [URL] to match while routing.@@ -2399,9 +2378,8 @@ export interface Page {/*** Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by* using the- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;@@ -2432,8 +2410,8 @@ export interface Page {* ```** Shortcut for main frame's- * [frame.selectOption(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#frameselectoption)- * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://github.com/microsoft/playwright/blob/master/docs/selectors.md#working-with-selectors) for more details.+ * [frame.selectOption(selector, values[, options])](https://playwright.dev/docs/api/class-frame#frameselectoptionselector-values-options)+ * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://playwright.dev/docs/selectors) for more details.* @param values Options to select. If the `<select>` has the `multiple` attribute, all matching options are selected, otherwise only the first option matching one of the passed options is selected. String values are equivalent to `{value:'string'}`. Option* is considered matching if all specified properties match.* @param options@@ -2479,9 +2457,8 @@ export interface Page {/*** Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by* using the- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;}): Promise<Array<string>>;@@ -2494,11 +2471,10 @@ export interface Page {/*** Maximum operation time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be* changed by using the- * [browserContext.setDefaultNavigationTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaultnavigationtimeout),- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout),- * [page.setDefaultNavigationTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaultnavigationtimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultNavigationTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaultnavigationtimeouttimeout),+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout),+ * [page.setDefaultNavigationTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaultnavigationtimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;@@ -2513,20 +2489,20 @@ export interface Page {/*** This setting will change the default maximum navigation time for the following methods and related shortcuts:- * - [page.goBack(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagegoback)- * - [page.goForward(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagegoforward)- * - [page.goto(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagegoto)- * - [page.reload(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagereload)- * - [page.setContent(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetcontent)- * - [page.waitForNavigation(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagewaitfornavigation)+ * - [page.goBack([options])](https://playwright.dev/docs/api/class-page#pagegobackoptions)+ * - [page.goForward([options])](https://playwright.dev/docs/api/class-page#pagegoforwardoptions)+ * - [page.goto(url[, options])](https://playwright.dev/docs/api/class-page#pagegotourl-options)+ * - [page.reload([options])](https://playwright.dev/docs/api/class-page#pagereloadoptions)+ * - [page.setContent(html[, options])](https://playwright.dev/docs/api/class-page#pagesetcontenthtml-options)+ * - [page.waitForNavigation([options])](https://playwright.dev/docs/api/class-page#pagewaitfornavigationoptions)** > NOTE:- * [page.setDefaultNavigationTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaultnavigationtimeout)+ * [page.setDefaultNavigationTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaultnavigationtimeouttimeout)* takes priority over- * [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout),- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout)+ * [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout),+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout)* and- * [browserContext.setDefaultNavigationTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaultnavigationtimeout).+ * [browserContext.setDefaultNavigationTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaultnavigationtimeouttimeout).* @param timeout Maximum navigation time in milliseconds*/setDefaultNavigationTimeout(timeout: number): void;@@ -2535,9 +2511,9 @@ export interface Page {* This setting will change the default maximum time for all the methods accepting `timeout` option.** > NOTE:- * [page.setDefaultNavigationTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaultnavigationtimeout)+ * [page.setDefaultNavigationTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaultnavigationtimeouttimeout)* takes priority over- * [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout).+ * [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout).* @param timeout Maximum time in milliseconds*/setDefaultTimeout(timeout: number): void;@@ -2545,8 +2521,7 @@ export interface Page {/*** The extra HTTP headers will be sent with every request the page initiates.*- * > NOTE:- * [page.setExtraHTTPHeaders(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetextrahttpheaders)+ * > NOTE: [page.setExtraHTTPHeaders(headers)](https://playwright.dev/docs/api/class-page#pagesetextrahttpheadersheaders)* does not guarantee the order of headers in the outgoing requests.* @param headers An object containing additional HTTP headers to be sent with every request. All header values must be strings.*/@@ -2558,7 +2533,7 @@ export interface Page {** Sets the value of the file input to these file paths or files. If some of the `filePaths` are relative paths, then they* are resolved relative to the the current working directory. For empty array, clears the selected files.- * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://github.com/microsoft/playwright/blob/master/docs/selectors.md#working-with-selectors) for more details.+ * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://playwright.dev/docs/selectors) for more details.* @param files* @param options*/@@ -2603,16 +2578,15 @@ export interface Page {/*** Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by* using the- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;}): Promise<void>;/*** In the case of multiple pages in a single browser, each page can have its own viewport size. However,- * [browser.newContext(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsernewcontext) allows to set+ * [browser.newContext([options])](https://playwright.dev/docs/api/class-browser#browsernewcontextoptions) allows to set* viewport size (and more) for all pages in the context at once.** `page.setViewportSize` will resize the page. A lot of websites don't expect phones to change size, so you should set the@@ -2644,26 +2618,27 @@ export interface Page {/*** This method taps an element matching `selector` by performing the following steps:* 1. Find an element match matching `selector`. If there is none, wait until a matching element is attached to the DOM.- * 1. Wait for [actionability](https://github.com/microsoft/playwright/blob/master/docs/actionability.md) checks on the matched element, unless `force` option is set. If the+ * 1. Wait for [actionability](https://playwright.dev/docs/actionability) checks on the matched element, unless `force` option is set. If the* element is detached during the checks, the whole action is retried.* 1. Scroll the element into view if needed.- * 1. Use [page.touchscreen](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagetouchscreen) to tap the- * center of the element, or the specified `position`.+ * 1. Use [page.touchscreen](https://playwright.dev/docs/api/class-page#pagetouchscreen) to tap the center of the+ * element, or the specified `position`.* 1. Wait for initiated navigations to either succeed or fail, unless `noWaitAfter` option is set.** When all steps combined have not finished during the specified `timeout`, this method rejects with a [TimeoutError].* Passing zero timeout disables this.*- * > NOTE: [page.tap(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagetap) requires that the- * `hasTouch` option of the browser context be set to true.+ * > NOTE: [page.tap(selector[, options])](https://playwright.dev/docs/api/class-page#pagetapselector-options) requires+ * that the `hasTouch` option of the browser context be set to true.*- * Shortcut for main frame's [frame.tap(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#frametap).- * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://github.com/microsoft/playwright/blob/master/docs/selectors.md#working-with-selectors) for more details.+ * Shortcut for main frame's+ * [frame.tap(selector[, options])](https://playwright.dev/docs/api/class-frame#frametapselector-options).+ * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://playwright.dev/docs/selectors) for more details.* @param options*/tap(selector: string, options?: {/**- * Whether to bypass the [actionability](https://github.com/microsoft/playwright/blob/master/docs/actionability.md) checks. Defaults to `false`.+ * Whether to bypass the [actionability](https://playwright.dev/docs/actionability) checks. Defaults to `false`.*/force?: boolean;@@ -2693,32 +2668,30 @@ export interface Page {/*** Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by* using the- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;}): Promise<void>;/*** Returns `element.textContent`.- * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://github.com/microsoft/playwright/blob/master/docs/selectors.md#working-with-selectors) for more details.+ * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://playwright.dev/docs/selectors) for more details.* @param options*/textContent(selector: string, options?: {/*** Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by* using the- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;}): Promise<null|string>;/*** Returns the page's title. Shortcut for main frame's- * [frame.title(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#frametitle).+ * [frame.title()](https://playwright.dev/docs/api/class-frame#frametitle).*/title(): Promise<string>;@@ -2727,18 +2700,19 @@ export interface Page {/*** Sends a `keydown`, `keypress`/`input`, and `keyup` event for each character in the text. `page.type` can be used to send* fine-grained keyboard events. To fill values in form fields, use- * [page.fill(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagefill).+ * [page.fill(selector, value[, options])](https://playwright.dev/docs/api/class-page#pagefillselector-value-options).** To press a special key, like `Control` or `ArrowDown`, use- * [keyboard.press(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#keyboardpress).+ * [keyboard.press(key[, options])](https://playwright.dev/docs/api/class-keyboard#keyboardpresskey-options).** ```js* await page.type('#mytextarea', 'Hello'); // Types instantly* await page.type('#mytextarea', 'World', {delay: 100}); // Types slower, like a user* ```*- * Shortcut for main frame's [frame.type(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#frametype).- * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://github.com/microsoft/playwright/blob/master/docs/selectors.md#working-with-selectors) for more details.+ * Shortcut for main frame's+ * [frame.type(selector, text[, options])](https://playwright.dev/docs/api/class-frame#frametypeselector-text-options).+ * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://playwright.dev/docs/selectors) for more details.* @param text A text to type into a focused element.* @param options*/@@ -2758,9 +2732,8 @@ export interface Page {/*** Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by* using the- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;}): Promise<void>;@@ -2770,11 +2743,10 @@ export interface Page {* 1. Find an element match matching `selector`. If there is none, wait until a matching element is attached to the DOM.* 1. Ensure that matched element is a checkbox or a radio input. If not, this method rejects. If the element is already* unchecked, this method returns immediately.- * 1. Wait for [actionability](https://github.com/microsoft/playwright/blob/master/docs/actionability.md) checks on the matched element, unless `force` option is set. If the+ * 1. Wait for [actionability](https://playwright.dev/docs/actionability) checks on the matched element, unless `force` option is set. If the* element is detached during the checks, the whole action is retried.* 1. Scroll the element into view if needed.- * 1. Use [page.mouse](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagemouse) to click in the center- * of the element.+ * 1. Use [page.mouse](https://playwright.dev/docs/api/class-page#pagemouse) to click in the center of the element.* 1. Wait for initiated navigations to either succeed or fail, unless `noWaitAfter` option is set.* 1. Ensure that the element is now unchecked. If not, this method rejects.*@@ -2782,13 +2754,13 @@ export interface Page {* Passing zero timeout disables this.** Shortcut for main frame's- * [frame.uncheck(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#frameuncheck).- * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://github.com/microsoft/playwright/blob/master/docs/selectors.md#working-with-selectors) for more details.+ * [frame.uncheck(selector[, options])](https://playwright.dev/docs/api/class-frame#frameuncheckselector-options).+ * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://playwright.dev/docs/selectors) for more details.* @param options*/uncheck(selector: string, options?: {/**- * Whether to bypass the [actionability](https://github.com/microsoft/playwright/blob/master/docs/actionability.md) checks. Defaults to `false`.+ * Whether to bypass the [actionability](https://playwright.dev/docs/actionability) checks. Defaults to `false`.*/force?: boolean;@@ -2802,23 +2774,23 @@ export interface Page {/*** Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by* using the- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;}): Promise<void>;/**- * Removes a route created with [page.route(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pageroute).- * When `handler` is not specified, removes all routes for the `url`.+ * Removes a route created with+ * [page.route(url, handler)](https://playwright.dev/docs/api/class-page#pagerouteurl-handler). When `handler` is not+ * specified, removes all routes for the `url`.* @param url A glob pattern, regex pattern or predicate receiving [URL] to match while routing.* @param handler Optional handler function to route the request.*/unroute(url: string|RegExp|((url: URL) => boolean), handler?: ((route: Route, request: Request) => void)): Promise<void>;/**- * Shortcut for main frame's [frame.url(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#frameurl).+ * Shortcut for main frame's [frame.url()](https://playwright.dev/docs/api/class-frame#frameurl).*/url(): string;@@ -2885,8 +2857,8 @@ export interface Page {/*** Emitted when a JavaScript dialog appears, such as `alert`, `prompt`, `confirm` or `beforeunload`. Playwright can respond- * to the dialog via [dialog.accept(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#dialogaccept) or- * [dialog.dismiss(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#dialogdismiss) methods.+ * to the dialog via [dialog.accept([promptText])](https://playwright.dev/docs/api/class-dialog#dialogacceptprompttext) or+ * [dialog.dismiss()](https://playwright.dev/docs/api/class-dialog#dialogdismiss) methods.*/waitForEvent(event: 'dialog', optionsOrPredicate?: { predicate?: (dialog: Dialog) => boolean, timeout?: number } | ((dialog: Dialog) => boolean)): Promise<Dialog>;@@ -2909,8 +2881,8 @@ export interface Page {/*** Emitted when a file chooser is supposed to appear, such as after clicking the `<input type=file>`. Playwright can* respond to it via setting the input files using- * [fileChooser.setFiles(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#filechoosersetfiles) that can- * be uploaded after that.+ * [fileChooser.setFiles(files[, options])](https://playwright.dev/docs/api/class-filechooser#filechoosersetfilesfiles-options)+ * that can be uploaded after that.** ```js* page.on('filechooser', async (fileChooser) => {@@ -2948,8 +2920,8 @@ export interface Page {/*** Emitted when the page opens a new tab or window. This event is emitted in addition to the- * [browserContext.on('page')](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextonpage), but- * only for popups relevant to this page.+ * [browserContext.on('page')](https://playwright.dev/docs/api/class-browsercontext#browsercontextonpage), but only for+ * popups relevant to this page.** The earliest moment that page is available is when it has navigated to the initial url. For example, when opening a* popup with `window.open('http://example.com')`, this event will fire when the network request to "http://example.com" is@@ -2964,15 +2936,15 @@ export interface Page {* ```** > NOTE: Use- * [page.waitForLoadState(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagewaitforloadstate) to wait- * until the page gets to a particular state (you should not need it in most cases).+ * [page.waitForLoadState([state, options])](https://playwright.dev/docs/api/class-page#pagewaitforloadstatestate-options)+ * to wait until the page gets to a particular state (you should not need it in most cases).*/waitForEvent(event: 'popup', optionsOrPredicate?: { predicate?: (page: Page) => boolean, timeout?: number } | ((page: Page) => boolean)): Promise<Page>;/*** Emitted when a page issues a request. The [request] object is read-only. In order to intercept and mutate requests, see- * [page.route(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pageroute) or- * [browserContext.route(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextroute).+ * [page.route(url, handler)](https://playwright.dev/docs/api/class-page#pagerouteurl-handler) or+ * [browserContext.route(url, handler)](https://playwright.dev/docs/api/class-browsercontext#browsercontextrouteurl-handler).*/waitForEvent(event: 'request', optionsOrPredicate?: { predicate?: (request: Request) => boolean, timeout?: number } | ((request: Request) => boolean)): Promise<Request>;@@ -2980,10 +2952,8 @@ export interface Page {* Emitted when a request fails, for example by timing out.** > NOTE: HTTP Error responses, such as 404 or 503, are still successful responses from HTTP standpoint, so request will- * complete with- * [page.on('requestfinished')](https://github.com/microsoft/playwright/blob/master/docs/api.md#pageonrequestfinished)- * event and not with- * [page.on('requestfailed')](https://github.com/microsoft/playwright/blob/master/docs/api.md#pageonrequestfailed).+ * complete with [page.on('requestfinished')](https://playwright.dev/docs/api/class-page#pageonrequestfinished) event and+ * not with [page.on('requestfailed')](https://playwright.dev/docs/api/class-page#pageonrequestfailed).*/waitForEvent(event: 'requestfailed', optionsOrPredicate?: { predicate?: (request: Request) => boolean, timeout?: number } | ((request: Request) => boolean)): Promise<Request>;@@ -3032,7 +3002,7 @@ export interface Page {* ```** Shortcut for main frame's- * [frame.waitForLoadState(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#framewaitforloadstate).+ * [frame.waitForLoadState([state, options])](https://playwright.dev/docs/api/class-frame#framewaitforloadstatestate-options).* @param state Optional load state to wait for, defaults to `load`. If the state has been already reached while loading current document, the method resolves immediately. Can be one of:* - `'load'` - wait for the `load` event to be fired.* - `'domcontentloaded'` - wait for the `DOMContentLoaded` event to be fired.@@ -3043,11 +3013,10 @@ export interface Page {/*** Maximum operation time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be* changed by using the- * [browserContext.setDefaultNavigationTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaultnavigationtimeout),- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout),- * [page.setDefaultNavigationTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaultnavigationtimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultNavigationTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaultnavigationtimeouttimeout),+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout),+ * [page.setDefaultNavigationTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaultnavigationtimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;}): Promise<void>;@@ -3072,18 +3041,17 @@ export interface Page {* considered a navigation.** Shortcut for main frame's- * [frame.waitForNavigation(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#framewaitfornavigation).+ * [frame.waitForNavigation([options])](https://playwright.dev/docs/api/class-frame#framewaitfornavigationoptions).* @param options*/waitForNavigation(options?: {/*** Maximum operation time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be* changed by using the- * [browserContext.setDefaultNavigationTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaultnavigationtimeout),- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout),- * [page.setDefaultNavigationTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaultnavigationtimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultNavigationTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaultnavigationtimeouttimeout),+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout),+ * [page.setDefaultNavigationTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaultnavigationtimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;@@ -3121,8 +3089,7 @@ export interface Page {/*** Maximum wait time in milliseconds, defaults to 30 seconds, pass `0` to disable the timeout. The default value can be* changed by using the- * [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * method.+ * [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) method.*/timeout?: number;}): Promise<Request>;@@ -3143,9 +3110,8 @@ export interface Page {/*** Maximum wait time in milliseconds, defaults to 30 seconds, pass `0` to disable the timeout. The default value can be* changed by using the- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;}): Promise<Response>;@@ -3162,7 +3128,7 @@ export interface Page {* ```** Shortcut for main frame's- * [frame.waitForTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#framewaitfortimeout).+ * [frame.waitForTimeout(timeout)](https://playwright.dev/docs/api/class-frame#framewaitfortimeouttimeout).* @param timeout A timeout to wait for*/waitForTimeout(timeout: number): Promise<void>;@@ -3177,16 +3143,16 @@ export interface Page {/*** At every point of time, page exposes its current frame tree via the- * [page.mainFrame(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagemainframe) and- * [frame.childFrames(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#framechildframes) methods.+ * [page.mainFrame()](https://playwright.dev/docs/api/class-page#pagemainframe) and+ * [frame.childFrames()](https://playwright.dev/docs/api/class-frame#framechildframes) methods.** [Frame] object's lifecycle is controlled by three events, dispatched on the page object:- * - [page.on('frameattached')](https://github.com/microsoft/playwright/blob/master/docs/api.md#pageonframeattached) -- * fired when the frame gets attached to the page. A Frame can be attached to the page only once.- * - [page.on('framenavigated')](https://github.com/microsoft/playwright/blob/master/docs/api.md#pageonframenavigated) -- * fired when the frame commits navigation to a different URL.- * - [page.on('framedetached')](https://github.com/microsoft/playwright/blob/master/docs/api.md#pageonframedetached) -- * fired when the frame gets detached from the page. A Frame can be detached from the page only once.+ * - [page.on('frameattached')](https://playwright.dev/docs/api/class-page#pageonframeattached) - fired when the frame+ * gets attached to the page. A Frame can be attached to the page only once.+ * - [page.on('framenavigated')](https://playwright.dev/docs/api/class-page#pageonframenavigated) - fired when the frame+ * commits navigation to a different URL.+ * - [page.on('framedetached')](https://playwright.dev/docs/api/class-page#pageonframedetached) - fired when the frame+ * gets detached from the page. A Frame can be detached from the page only once.** An example of dumping frame tree:*@@ -3215,15 +3181,17 @@ export interface Frame {* Returns the return value of `pageFunction`** If the function passed to the- * [frame.evaluate(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#frameevaluate) returns a [Promise],- * then [frame.evaluate(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#frameevaluate) would wait for- * the promise to resolve and return its value.+ * [frame.evaluate(pageFunction[, arg])](https://playwright.dev/docs/api/class-frame#frameevaluatepagefunction-arg) returns+ * a [Promise], then+ * [frame.evaluate(pageFunction[, arg])](https://playwright.dev/docs/api/class-frame#frameevaluatepagefunction-arg) would+ * wait for the promise to resolve and return its value.** If the function passed to the- * [frame.evaluate(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#frameevaluate) returns a- * non-[Serializable] value, then[ method: `Frame.evaluate`] returns `undefined`. DevTools Protocol also supports- * transferring some additional values that are not serializable by `JSON`: `-0`, `NaN`, `Infinity`, `-Infinity`, and- * bigint literals.+ * [frame.evaluate(pageFunction[, arg])](https://playwright.dev/docs/api/class-frame#frameevaluatepagefunction-arg) returns+ * a non-[Serializable] value, then+ * [frame.evaluate(pageFunction[, arg])](https://playwright.dev/docs/api/class-frame#frameevaluatepagefunction-arg) returns+ * `undefined`. DevTools Protocol also supports transferring some additional values that are not serializable by `JSON`:+ * `-0`, `NaN`, `Infinity`, `-Infinity`, and bigint literals.** ```js* const result = await frame.evaluate(([x, y]) => {@@ -3239,7 +3207,7 @@ export interface Frame {* ```** [ElementHandle] instances can be passed as an argument to the- * [frame.evaluate(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#frameevaluate):+ * [frame.evaluate(pageFunction[, arg])](https://playwright.dev/docs/api/class-frame#frameevaluatepagefunction-arg):** ```js* const bodyHandle = await frame.$('body');@@ -3257,13 +3225,15 @@ export interface Frame {* Returns the return value of `pageFunction` as in-page object (JSHandle).** The only difference between- * [frame.evaluate(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#frameevaluate) and- * [frame.evaluateHandle(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#frameevaluatehandle) is- * that[ method: Fframe.evaluateHandle`] returns in-page object (JSHandle).+ * [frame.evaluate(pageFunction[, arg])](https://playwright.dev/docs/api/class-frame#frameevaluatepagefunction-arg) and+ * [frame.evaluateHandle(pageFunction[, arg])](https://playwright.dev/docs/api/class-frame#frameevaluatehandlepagefunction-arg)+ * is that [method: Frame.evaluateHandle`] returns in-page object (JSHandle).** If the function, passed to the- * [frame.evaluateHandle(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#frameevaluatehandle), returns- * a [Promise], then[ method: Fframe.evaluateHandle`] would wait for the promise to resolve and return its value.+ * [frame.evaluateHandle(pageFunction[, arg])](https://playwright.dev/docs/api/class-frame#frameevaluatehandlepagefunction-arg),+ * returns a [Promise], then+ * [frame.evaluateHandle(pageFunction[, arg])](https://playwright.dev/docs/api/class-frame#frameevaluatehandlepagefunction-arg)+ * would wait for the promise to resolve and return its value.** ```js* const aWindowHandle = await frame.evaluateHandle(() => Promise.resolve(window));@@ -3277,7 +3247,7 @@ export interface Frame {* ```** [JSHandle] instances can be passed as an argument to the- * [frame.evaluateHandle(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#frameevaluatehandle):+ * [frame.evaluateHandle(pageFunction[, arg])](https://playwright.dev/docs/api/class-frame#frameevaluatehandlepagefunction-arg):** ```js* const aHandle = await frame.evaluateHandle(() => document.body);@@ -3296,9 +3266,8 @@ export interface Frame {* Returns the ElementHandle pointing to the frame element.** The method finds an element matching the specified selector within the frame. See- * [Working with selectors](https://github.com/microsoft/playwright/blob/master/docs/selectors.md#working-with-selectors) for more details. If no elements match the selector,- * returns `null`.- * @param selector A selector to query for. See [working with selectors](https://github.com/microsoft/playwright/blob/master/docs/selectors.md#working-with-selectors) for more details.+ * [Working with selectors](https://playwright.dev/docs/selectors) for more details. If no elements match the selector, returns `null`.+ * @param selector A selector to query for. See [working with selectors](https://playwright.dev/docs/selectors) for more details.*/$<K extends keyof HTMLElementTagNameMap>(selector: K): Promise<ElementHandleForTag<K> | null>;$(selector: string): Promise<ElementHandle<SVGElement | HTMLElement> | null>;@@ -3307,9 +3276,8 @@ export interface Frame {* Returns the ElementHandles pointing to the frame elements.** The method finds all elements matching the specified selector within the frame. See- * [Working with selectors](https://github.com/microsoft/playwright/blob/master/docs/selectors.md#working-with-selectors) for more details. If no elements match the selector,- * returns empty array.- * @param selector A selector to query for. See [working with selectors](https://github.com/microsoft/playwright/blob/master/docs/selectors.md#working-with-selectors) for more details.+ * [Working with selectors](https://playwright.dev/docs/selectors) for more details. If no elements match the selector, returns empty array.+ * @param selector A selector to query for. See [working with selectors](https://playwright.dev/docs/selectors) for more details.*/$$<K extends keyof HTMLElementTagNameMap>(selector: K): Promise<ElementHandleForTag<K>[]>;$$(selector: string): Promise<ElementHandle<SVGElement | HTMLElement>[]>;@@ -3318,8 +3286,8 @@ export interface Frame {* Returns the return value of `pageFunction`** The method finds an element matching the specified selector within the frame and passes it as a first argument to- * `pageFunction`. See [Working with selectors](https://github.com/microsoft/playwright/blob/master/docs/selectors.md#working-with-selectors) for more details. If no elements- * match the selector, the method throws an error.+ * `pageFunction`. See [Working with selectors](https://playwright.dev/docs/selectors) for more details. If no elements match the selector, the+ * method throws an error.** If `pageFunction` returns a [Promise], then `frame.$eval` would wait for the promise to resolve and return its value.*@@ -3331,7 +3299,7 @@ export interface Frame {* const html = await frame.$eval('.main-container', (e, suffix) => e.outerHTML + suffix, 'hello');* ```*- * @param selector A selector to query for. See [working with selectors](https://github.com/microsoft/playwright/blob/master/docs/selectors.md#working-with-selectors) for more details.+ * @param selector A selector to query for. See [working with selectors](https://playwright.dev/docs/selectors) for more details.* @param pageFunction Function to be evaluated in browser context* @param arg Optional argument to pass to `pageFunction`*/@@ -3344,8 +3312,7 @@ export interface Frame {* Returns the return value of `pageFunction`** The method finds all elements matching the specified selector within the frame and passes an array of matched elements- * as a first argument to `pageFunction`. See [Working with selectors](https://github.com/microsoft/playwright/blob/master/docs/selectors.md#working-with-selectors) for more- * details.+ * as a first argument to `pageFunction`. See [Working with selectors](https://playwright.dev/docs/selectors) for more details.** If `pageFunction` returns a [Promise], then `frame.$$eval` would wait for the promise to resolve and return its value.*@@ -3355,7 +3322,7 @@ export interface Frame {* const divsCounts = await frame.$$eval('div', (divs, min) => divs.length >= min, 10);* ```*- * @param selector A selector to query for. See [working with selectors](https://github.com/microsoft/playwright/blob/master/docs/selectors.md#working-with-selectors) for more details.+ * @param selector A selector to query for. See [working with selectors](https://playwright.dev/docs/selectors) for more details.* @param pageFunction Function to be evaluated in browser context* @param arg Optional argument to pass to `pageFunction`*/@@ -3367,7 +3334,9 @@ export interface Frame {/*** Returns when the `pageFunction` returns a truthy value, returns that value.*- * The `waitForFunction` can be used to observe viewport size change:+ * The+ * [frame.waitForFunction(pageFunction[, arg, options])](https://playwright.dev/docs/api/class-frame#framewaitforfunctionpagefunction-arg-options)+ * can be used to observe viewport size change:** ```js* const { firefox } = require('playwright'); // Or 'chromium' or 'webkit'.@@ -3421,7 +3390,7 @@ export interface Frame {* })();* ```*- * @param selector A selector to query for. See [working with selectors](https://github.com/microsoft/playwright/blob/master/docs/selectors.md#working-with-selectors) for more details.+ * @param selector A selector to query for. See [working with selectors](https://playwright.dev/docs/selectors) for more details.* @param options*/waitForSelector<K extends keyof HTMLElementTagNameMap>(selector: K, options?: PageWaitForSelectorOptionsNotHidden): Promise<ElementHandleForTag<K>>;@@ -3488,22 +3457,21 @@ export interface Frame {* 1. Find an element match matching `selector`. If there is none, wait until a matching element is attached to the DOM.* 1. Ensure that matched element is a checkbox or a radio input. If not, this method rejects. If the element is already* checked, this method returns immediately.- * 1. Wait for [actionability](https://github.com/microsoft/playwright/blob/master/docs/actionability.md) checks on the matched element, unless `force` option is set. If the+ * 1. Wait for [actionability](https://playwright.dev/docs/actionability) checks on the matched element, unless `force` option is set. If the* element is detached during the checks, the whole action is retried.* 1. Scroll the element into view if needed.- * 1. Use [page.mouse](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagemouse) to click in the center- * of the element.+ * 1. Use [page.mouse](https://playwright.dev/docs/api/class-page#pagemouse) to click in the center of the element.* 1. Wait for initiated navigations to either succeed or fail, unless `noWaitAfter` option is set.* 1. Ensure that the element is now checked. If not, this method rejects.** When all steps combined have not finished during the specified `timeout`, this method rejects with a [TimeoutError].* Passing zero timeout disables this.- * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://github.com/microsoft/playwright/blob/master/docs/selectors.md#working-with-selectors) for more details.+ * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://playwright.dev/docs/selectors) for more details.* @param options*/check(selector: string, options?: {/**- * Whether to bypass the [actionability](https://github.com/microsoft/playwright/blob/master/docs/actionability.md) checks. Defaults to `false`.+ * Whether to bypass the [actionability](https://playwright.dev/docs/actionability) checks. Defaults to `false`.*/force?: boolean;@@ -3517,9 +3485,8 @@ export interface Frame {/*** Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by* using the- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;}): Promise<void>;@@ -3529,16 +3496,16 @@ export interface Frame {/*** This method clicks an element matching `selector` by performing the following steps:* 1. Find an element match matching `selector`. If there is none, wait until a matching element is attached to the DOM.- * 1. Wait for [actionability](https://github.com/microsoft/playwright/blob/master/docs/actionability.md) checks on the matched element, unless `force` option is set. If the+ * 1. Wait for [actionability](https://playwright.dev/docs/actionability) checks on the matched element, unless `force` option is set. If the* element is detached during the checks, the whole action is retried.* 1. Scroll the element into view if needed.- * 1. Use [page.mouse](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagemouse) to click in the center- * of the element, or the specified `position`.+ * 1. Use [page.mouse](https://playwright.dev/docs/api/class-page#pagemouse) to click in the center of the element, or+ * the specified `position`.* 1. Wait for initiated navigations to either succeed or fail, unless `noWaitAfter` option is set.** When all steps combined have not finished during the specified `timeout`, this method rejects with a [TimeoutError].* Passing zero timeout disables this.- * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://github.com/microsoft/playwright/blob/master/docs/selectors.md#working-with-selectors) for more details.+ * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://playwright.dev/docs/selectors) for more details.* @param options*/click(selector: string, options?: {@@ -3558,7 +3525,7 @@ export interface Frame {delay?: number;/**- * Whether to bypass the [actionability](https://github.com/microsoft/playwright/blob/master/docs/actionability.md) checks. Defaults to `false`.+ * Whether to bypass the [actionability](https://playwright.dev/docs/actionability) checks. Defaults to `false`.*/force?: boolean;@@ -3588,9 +3555,8 @@ export interface Frame {/*** Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by* using the- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;}): Promise<void>;@@ -3603,11 +3569,11 @@ export interface Frame {/*** This method double clicks an element matching `selector` by performing the following steps:* 1. Find an element match matching `selector`. If there is none, wait until a matching element is attached to the DOM.- * 1. Wait for [actionability](https://github.com/microsoft/playwright/blob/master/docs/actionability.md) checks on the matched element, unless `force` option is set. If the+ * 1. Wait for [actionability](https://playwright.dev/docs/actionability) checks on the matched element, unless `force` option is set. If the* element is detached during the checks, the whole action is retried.* 1. Scroll the element into view if needed.- * 1. Use [page.mouse](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagemouse) to double click in the- * center of the element, or the specified `position`.+ * 1. Use [page.mouse](https://playwright.dev/docs/api/class-page#pagemouse) to double click in the center of the+ * element, or the specified `position`.* 1. Wait for initiated navigations to either succeed or fail, unless `noWaitAfter` option is set. Note that if the* first click of the `dblclick()` triggers a navigation event, this method will reject.*@@ -3615,7 +3581,7 @@ export interface Frame {* Passing zero timeout disables this.** > NOTE: `frame.dblclick()` dispatches two `click` events and a single `dblclick` event.- * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://github.com/microsoft/playwright/blob/master/docs/selectors.md#working-with-selectors) for more details.+ * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://playwright.dev/docs/selectors) for more details.* @param options*/dblclick(selector: string, options?: {@@ -3630,7 +3596,7 @@ export interface Frame {delay?: number;/**- * Whether to bypass the [actionability](https://github.com/microsoft/playwright/blob/master/docs/actionability.md) checks. Defaults to `false`.+ * Whether to bypass the [actionability](https://playwright.dev/docs/actionability) checks. Defaults to `false`.*/force?: boolean;@@ -3660,9 +3626,8 @@ export interface Frame {/*** Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by* using the- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;}): Promise<void>;@@ -3696,7 +3661,7 @@ export interface Frame {* await frame.dispatchEvent('#source', 'dragstart', { dataTransfer });* ```*- * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://github.com/microsoft/playwright/blob/master/docs/selectors.md#working-with-selectors) for more details.+ * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://playwright.dev/docs/selectors) for more details.* @param type DOM event type: `"click"`, `"dragstart"`, etc.* @param eventInit Optional event-specific initialization properties.* @param options@@ -3705,22 +3670,21 @@ export interface Frame {/*** Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by* using the- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;}): Promise<void>;/**- * This method waits for an element matching `selector`, waits for [actionability](https://github.com/microsoft/playwright/blob/master/docs/actionability.md) checks, focuses the+ * This method waits for an element matching `selector`, waits for [actionability](https://playwright.dev/docs/actionability) checks, focuses the* element, fills it and triggers an `input` event after filling. If the element matching `selector` is not an `<input>`,* `<textarea>` or `[contenteditable]` element, this method throws an error. Note that you can pass an empty string to* clear the input field.** To send fine-grained keyboard events, use- * [frame.type(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#frametype).- * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://github.com/microsoft/playwright/blob/master/docs/selectors.md#working-with-selectors) for more details.+ * [frame.type(selector, text[, options])](https://playwright.dev/docs/api/class-frame#frametypeselector-text-options).+ * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://playwright.dev/docs/selectors) for more details.* @param value Value to fill for the `<input>`, `<textarea>` or `[contenteditable]` element.* @param options*/@@ -3735,9 +3699,8 @@ export interface Frame {/*** Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by* using the- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;}): Promise<void>;@@ -3745,16 +3708,15 @@ export interface Frame {/*** This method fetches an element with `selector` and focuses it. If there's no element matching `selector`, the method* waits until a matching element appears in the DOM.- * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://github.com/microsoft/playwright/blob/master/docs/selectors.md#working-with-selectors) for more details.+ * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://playwright.dev/docs/selectors) for more details.* @param options*/focus(selector: string, options?: {/*** Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by* using the- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;}): Promise<void>;@@ -3763,8 +3725,8 @@ export interface Frame {* Returns the `frame` or `iframe` element handle which corresponds to this frame.** This is an inverse of- * [elementHandle.contentFrame(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#elementhandlecontentframe).- * Note that returned handle actually belongs to the parent frame.+ * [elementHandle.contentFrame()](https://playwright.dev/docs/api/class-elementhandle#elementhandlecontentframe). Note that+ * returned handle actually belongs to the parent frame.** This method throws an error if the frame has been detached before `frameElement()` returns.*@@ -3779,7 +3741,7 @@ export interface Frame {/*** Returns element attribute value.- * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://github.com/microsoft/playwright/blob/master/docs/selectors.md#working-with-selectors) for more details.+ * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://playwright.dev/docs/selectors) for more details.* @param name Attribute name to get the value for.* @param options*/@@ -3787,9 +3749,8 @@ export interface Frame {/*** Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by* using the- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;}): Promise<null|string>;@@ -3807,7 +3768,7 @@ export interface Frame {** `frame.goto` will not throw an error when any valid HTTP status code is returned by the remote server, including 404* "Not Found" and 500 "Internal Server Error". The status code for such responses can be retrieved by calling- * [response.status(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#responsestatus).+ * [response.status()](https://playwright.dev/docs/api/class-response#responsestatus).** > NOTE: `frame.goto` either throws an error or returns a main resource response. The only exceptions are navigation to* `about:blank` or navigation to the same URL with a different hash, which would succeed and return `null`.@@ -3819,18 +3780,17 @@ export interface Frame {goto(url: string, options?: {/*** Referer header value. If provided it will take preference over the referer header value set by- * [page.setExtraHTTPHeaders(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetextrahttpheaders).+ * [page.setExtraHTTPHeaders(headers)](https://playwright.dev/docs/api/class-page#pagesetextrahttpheadersheaders).*/referer?: string;/*** Maximum operation time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be* changed by using the- * [browserContext.setDefaultNavigationTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaultnavigationtimeout),- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout),- * [page.setDefaultNavigationTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaultnavigationtimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultNavigationTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaultnavigationtimeouttimeout),+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout),+ * [page.setDefaultNavigationTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaultnavigationtimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;@@ -3846,21 +3806,21 @@ export interface Frame {/*** This method hovers over an element matching `selector` by performing the following steps:* 1. Find an element match matching `selector`. If there is none, wait until a matching element is attached to the DOM.- * 1. Wait for [actionability](https://github.com/microsoft/playwright/blob/master/docs/actionability.md) checks on the matched element, unless `force` option is set. If the+ * 1. Wait for [actionability](https://playwright.dev/docs/actionability) checks on the matched element, unless `force` option is set. If the* element is detached during the checks, the whole action is retried.* 1. Scroll the element into view if needed.- * 1. Use [page.mouse](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagemouse) to hover over the- * center of the element, or the specified `position`.+ * 1. Use [page.mouse](https://playwright.dev/docs/api/class-page#pagemouse) to hover over the center of the element, or+ * the specified `position`.* 1. Wait for initiated navigations to either succeed or fail, unless `noWaitAfter` option is set.** When all steps combined have not finished during the specified `timeout`, this method rejects with a [TimeoutError].* Passing zero timeout disables this.- * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://github.com/microsoft/playwright/blob/master/docs/selectors.md#working-with-selectors) for more details.+ * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://playwright.dev/docs/selectors) for more details.* @param options*/hover(selector: string, options?: {/**- * Whether to bypass the [actionability](https://github.com/microsoft/playwright/blob/master/docs/actionability.md) checks. Defaults to `false`.+ * Whether to bypass the [actionability](https://playwright.dev/docs/actionability) checks. Defaults to `false`.*/force?: boolean;@@ -3883,57 +3843,53 @@ export interface Frame {/*** Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by* using the- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;}): Promise<void>;/*** Returns `element.innerHTML`.- * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://github.com/microsoft/playwright/blob/master/docs/selectors.md#working-with-selectors) for more details.+ * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://playwright.dev/docs/selectors) for more details.* @param options*/innerHTML(selector: string, options?: {/*** Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by* using the- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;}): Promise<string>;/*** Returns `element.innerText`.- * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://github.com/microsoft/playwright/blob/master/docs/selectors.md#working-with-selectors) for more details.+ * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://playwright.dev/docs/selectors) for more details.* @param options*/innerText(selector: string, options?: {/*** Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by* using the- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;}): Promise<string>;/*** Returns whether the element is checked. Throws if the element is not a checkbox or radio input.- * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://github.com/microsoft/playwright/blob/master/docs/selectors.md#working-with-selectors) for more details.+ * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://playwright.dev/docs/selectors) for more details.* @param options*/isChecked(selector: string, options?: {/*** Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by* using the- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;}): Promise<boolean>;@@ -3944,81 +3900,76 @@ export interface Frame {isDetached(): boolean;/**- * Returns whether the element is disabled, the opposite of [enabled](https://github.com/microsoft/playwright/blob/master/docs/actionability.md#enabled).- * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://github.com/microsoft/playwright/blob/master/docs/selectors.md#working-with-selectors) for more details.+ * Returns whether the element is disabled, the opposite of [enabled](https://playwright.dev/docs/actionability#enabled).+ * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://playwright.dev/docs/selectors) for more details.* @param options*/isDisabled(selector: string, options?: {/*** Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by* using the- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;}): Promise<boolean>;/**- * Returns whether the element is [editable](https://github.com/microsoft/playwright/blob/master/docs/actionability.md#editable).- * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://github.com/microsoft/playwright/blob/master/docs/selectors.md#working-with-selectors) for more details.+ * Returns whether the element is [editable](https://playwright.dev/docs/actionability#editable).+ * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://playwright.dev/docs/selectors) for more details.* @param options*/isEditable(selector: string, options?: {/*** Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by* using the- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;}): Promise<boolean>;/**- * Returns whether the element is [enabled](https://github.com/microsoft/playwright/blob/master/docs/actionability.md#enabled).- * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://github.com/microsoft/playwright/blob/master/docs/selectors.md#working-with-selectors) for more details.+ * Returns whether the element is [enabled](https://playwright.dev/docs/actionability#enabled).+ * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://playwright.dev/docs/selectors) for more details.* @param options*/isEnabled(selector: string, options?: {/*** Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by* using the- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;}): Promise<boolean>;/**- * Returns whether the element is hidden, the opposite of [visible](https://github.com/microsoft/playwright/blob/master/docs/actionability.md#visible).- * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://github.com/microsoft/playwright/blob/master/docs/selectors.md#working-with-selectors) for more details.+ * Returns whether the element is hidden, the opposite of [visible](https://playwright.dev/docs/actionability#visible).+ * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://playwright.dev/docs/selectors) for more details.* @param options*/isHidden(selector: string, options?: {/*** Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by* using the- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;}): Promise<boolean>;/**- * Returns whether the element is [visible](https://github.com/microsoft/playwright/blob/master/docs/actionability.md#visible).- * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://github.com/microsoft/playwright/blob/master/docs/selectors.md#working-with-selectors) for more details.+ * Returns whether the element is [visible](https://playwright.dev/docs/actionability#visible).+ * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://playwright.dev/docs/selectors) for more details.* @param options*/isVisible(selector: string, options?: {/*** Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by* using the- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;}): Promise<boolean>;@@ -4059,7 +4010,7 @@ export interface Frame {** Shortcuts such as `key: "Control+o"` or `key: "Control+Shift+T"` are supported as well. When speficied with the* modifier, modifier is pressed and being held while the subsequent key is being pressed.- * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://github.com/microsoft/playwright/blob/master/docs/selectors.md#working-with-selectors) for more details.+ * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://playwright.dev/docs/selectors) for more details.* @param key Name of the key to press or a character to generate, such as `ArrowLeft` or `a`.* @param options*/@@ -4079,9 +4030,8 @@ export interface Frame {/*** Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by* using the- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;}): Promise<void>;@@ -4105,7 +4055,7 @@ export interface Frame {* frame.selectOption('select#colors', 'red', 'green', 'blue');* ```*- * @param selector A selector to query for. See [working with selectors](https://github.com/microsoft/playwright/blob/master/docs/selectors.md#working-with-selectors) for more details.+ * @param selector A selector to query for. See [working with selectors](https://playwright.dev/docs/selectors) for more details.* @param values Options to select. If the `<select>` has the `multiple` attribute, all matching options are selected, otherwise only the first option matching one of the passed options is selected. String values are equivalent to `{value:'string'}`. Option* is considered matching if all specified properties match.* @param options@@ -4151,9 +4101,8 @@ export interface Frame {/*** Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by* using the- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;}): Promise<Array<string>>;@@ -4166,11 +4115,10 @@ export interface Frame {/*** Maximum operation time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be* changed by using the- * [browserContext.setDefaultNavigationTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaultnavigationtimeout),- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout),- * [page.setDefaultNavigationTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaultnavigationtimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultNavigationTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaultnavigationtimeouttimeout),+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout),+ * [page.setDefaultNavigationTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaultnavigationtimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;@@ -4189,7 +4137,7 @@ export interface Frame {** Sets the value of the file input to these file paths or files. If some of the `filePaths` are relative paths, then they* are resolved relative to the the current working directory. For empty array, clears the selected files.- * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://github.com/microsoft/playwright/blob/master/docs/selectors.md#working-with-selectors) for more details.+ * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://playwright.dev/docs/selectors) for more details.* @param files* @param options*/@@ -4234,9 +4182,8 @@ export interface Frame {/*** Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by* using the- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;}): Promise<void>;@@ -4244,23 +4191,23 @@ export interface Frame {/*** This method taps an element matching `selector` by performing the following steps:* 1. Find an element match matching `selector`. If there is none, wait until a matching element is attached to the DOM.- * 1. Wait for [actionability](https://github.com/microsoft/playwright/blob/master/docs/actionability.md) checks on the matched element, unless `force` option is set. If the+ * 1. Wait for [actionability](https://playwright.dev/docs/actionability) checks on the matched element, unless `force` option is set. If the* element is detached during the checks, the whole action is retried.* 1. Scroll the element into view if needed.- * 1. Use [page.touchscreen](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagetouchscreen) to tap the- * center of the element, or the specified `position`.+ * 1. Use [page.touchscreen](https://playwright.dev/docs/api/class-page#pagetouchscreen) to tap the center of the+ * element, or the specified `position`.* 1. Wait for initiated navigations to either succeed or fail, unless `noWaitAfter` option is set.** When all steps combined have not finished during the specified `timeout`, this method rejects with a [TimeoutError].* Passing zero timeout disables this.** > NOTE: `frame.tap()` requires that the `hasTouch` option of the browser context be set to true.- * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://github.com/microsoft/playwright/blob/master/docs/selectors.md#working-with-selectors) for more details.+ * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://playwright.dev/docs/selectors) for more details.* @param options*/tap(selector: string, options?: {/**- * Whether to bypass the [actionability](https://github.com/microsoft/playwright/blob/master/docs/actionability.md) checks. Defaults to `false`.+ * Whether to bypass the [actionability](https://playwright.dev/docs/actionability) checks. Defaults to `false`.*/force?: boolean;@@ -4290,25 +4237,23 @@ export interface Frame {/*** Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by* using the- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;}): Promise<void>;/*** Returns `element.textContent`.- * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://github.com/microsoft/playwright/blob/master/docs/selectors.md#working-with-selectors) for more details.+ * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://playwright.dev/docs/selectors) for more details.* @param options*/textContent(selector: string, options?: {/*** Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by* using the- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;}): Promise<null|string>;@@ -4321,17 +4266,17 @@ export interface Frame {/*** Sends a `keydown`, `keypress`/`input`, and `keyup` event for each character in the text. `frame.type` can be used to* send fine-grained keyboard events. To fill values in form fields, use- * [frame.fill(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#framefill).+ * [frame.fill(selector, value[, options])](https://playwright.dev/docs/api/class-frame#framefillselector-value-options).** To press a special key, like `Control` or `ArrowDown`, use- * [keyboard.press(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#keyboardpress).+ * [keyboard.press(key[, options])](https://playwright.dev/docs/api/class-keyboard#keyboardpresskey-options).** ```js* await frame.type('#mytextarea', 'Hello'); // Types instantly* await frame.type('#mytextarea', 'World', {delay: 100}); // Types slower, like a user* ```*- * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://github.com/microsoft/playwright/blob/master/docs/selectors.md#working-with-selectors) for more details.+ * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://playwright.dev/docs/selectors) for more details.* @param text A text to type into a focused element.* @param options*/@@ -4351,9 +4296,8 @@ export interface Frame {/*** Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by* using the- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;}): Promise<void>;@@ -4363,22 +4307,21 @@ export interface Frame {* 1. Find an element match matching `selector`. If there is none, wait until a matching element is attached to the DOM.* 1. Ensure that matched element is a checkbox or a radio input. If not, this method rejects. If the element is already* unchecked, this method returns immediately.- * 1. Wait for [actionability](https://github.com/microsoft/playwright/blob/master/docs/actionability.md) checks on the matched element, unless `force` option is set. If the+ * 1. Wait for [actionability](https://playwright.dev/docs/actionability) checks on the matched element, unless `force` option is set. If the* element is detached during the checks, the whole action is retried.* 1. Scroll the element into view if needed.- * 1. Use [page.mouse](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagemouse) to click in the center- * of the element.+ * 1. Use [page.mouse](https://playwright.dev/docs/api/class-page#pagemouse) to click in the center of the element.* 1. Wait for initiated navigations to either succeed or fail, unless `noWaitAfter` option is set.* 1. Ensure that the element is now unchecked. If not, this method rejects.** When all steps combined have not finished during the specified `timeout`, this method rejects with a [TimeoutError].* Passing zero timeout disables this.- * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://github.com/microsoft/playwright/blob/master/docs/selectors.md#working-with-selectors) for more details.+ * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://playwright.dev/docs/selectors) for more details.* @param options*/uncheck(selector: string, options?: {/**- * Whether to bypass the [actionability](https://github.com/microsoft/playwright/blob/master/docs/actionability.md) checks. Defaults to `false`.+ * Whether to bypass the [actionability](https://playwright.dev/docs/actionability) checks. Defaults to `false`.*/force?: boolean;@@ -4392,9 +4335,8 @@ export interface Frame {/*** Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by* using the- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;}): Promise<void>;@@ -4425,11 +4367,10 @@ export interface Frame {/*** Maximum operation time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be* changed by using the- * [browserContext.setDefaultNavigationTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaultnavigationtimeout),- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout),- * [page.setDefaultNavigationTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaultnavigationtimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultNavigationTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaultnavigationtimeouttimeout),+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout),+ * [page.setDefaultNavigationTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaultnavigationtimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;}): Promise<void>;@@ -4457,11 +4398,10 @@ export interface Frame {/*** Maximum operation time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be* changed by using the- * [browserContext.setDefaultNavigationTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaultnavigationtimeout),- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout),- * [page.setDefaultNavigationTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaultnavigationtimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultNavigationTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaultnavigationtimeouttimeout),+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout),+ * [page.setDefaultNavigationTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaultnavigationtimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;@@ -4519,8 +4459,9 @@ export interface BrowserContext {* The first argument of the `callback` function contains information about the caller: `{ browserContext: BrowserContext,* page: Page, frame: Frame }`.*- * See [page.exposeBinding(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pageexposebinding) for- * page-only version.+ * See+ * [page.exposeBinding(name, callback[, options])](https://playwright.dev/docs/api/class-page#pageexposebindingname-callback-options)+ * for page-only version.** An example of exposing page URL to all frames in all pages in the context:*@@ -4570,16 +4511,14 @@ export interface BrowserContext {* Emitted when Browser context gets closed. This might happen because of one of the following:* - Browser context is closed.* - Browser application is closed or crashed.- * - The [browser.close(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browserclose) method was- * called.+ * - The [browser.close()](https://playwright.dev/docs/api/class-browser#browserclose) method was called.*/on(event: 'close', listener: () => void): this;/*** The event is emitted when a new Page is created in the BrowserContext. The page may still be loading. The event will- * also fire for popup pages. See also- * [page.on('popup')](https://github.com/microsoft/playwright/blob/master/docs/api.md#pageonpopup) to receive events about- * popups relevant to a specific page.+ * also fire for popup pages. See also [page.on('popup')](https://playwright.dev/docs/api/class-page#pageonpopup) to+ * receive events about popups relevant to a specific page.** The earliest moment that page is available is when it has navigated to the initial url. For example, when opening a* popup with `window.open('http://example.com')`, this event will fire when the network request to "http://example.com" is@@ -4594,8 +4533,8 @@ export interface BrowserContext {* ```** > NOTE: Use- * [page.waitForLoadState(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagewaitforloadstate) to wait- * until the page gets to a particular state (you should not need it in most cases).+ * [page.waitForLoadState([state, options])](https://playwright.dev/docs/api/class-page#pagewaitforloadstatestate-options)+ * to wait until the page gets to a particular state (you should not need it in most cases).*/on(event: 'page', listener: (page: Page) => void): this;@@ -4603,16 +4542,14 @@ export interface BrowserContext {* Emitted when Browser context gets closed. This might happen because of one of the following:* - Browser context is closed.* - Browser application is closed or crashed.- * - The [browser.close(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browserclose) method was- * called.+ * - The [browser.close()](https://playwright.dev/docs/api/class-browser#browserclose) method was called.*/once(event: 'close', listener: () => void): this;/*** The event is emitted when a new Page is created in the BrowserContext. The page may still be loading. The event will- * also fire for popup pages. See also- * [page.on('popup')](https://github.com/microsoft/playwright/blob/master/docs/api.md#pageonpopup) to receive events about- * popups relevant to a specific page.+ * also fire for popup pages. See also [page.on('popup')](https://playwright.dev/docs/api/class-page#pageonpopup) to+ * receive events about popups relevant to a specific page.** The earliest moment that page is available is when it has navigated to the initial url. For example, when opening a* popup with `window.open('http://example.com')`, this event will fire when the network request to "http://example.com" is@@ -4627,8 +4564,8 @@ export interface BrowserContext {* ```** > NOTE: Use- * [page.waitForLoadState(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagewaitforloadstate) to wait- * until the page gets to a particular state (you should not need it in most cases).+ * [page.waitForLoadState([state, options])](https://playwright.dev/docs/api/class-page#pagewaitforloadstatestate-options)+ * to wait until the page gets to a particular state (you should not need it in most cases).*/once(event: 'page', listener: (page: Page) => void): this;@@ -4636,16 +4573,14 @@ export interface BrowserContext {* Emitted when Browser context gets closed. This might happen because of one of the following:* - Browser context is closed.* - Browser application is closed or crashed.- * - The [browser.close(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browserclose) method was- * called.+ * - The [browser.close()](https://playwright.dev/docs/api/class-browser#browserclose) method was called.*/addListener(event: 'close', listener: () => void): this;/*** The event is emitted when a new Page is created in the BrowserContext. The page may still be loading. The event will- * also fire for popup pages. See also- * [page.on('popup')](https://github.com/microsoft/playwright/blob/master/docs/api.md#pageonpopup) to receive events about- * popups relevant to a specific page.+ * also fire for popup pages. See also [page.on('popup')](https://playwright.dev/docs/api/class-page#pageonpopup) to+ * receive events about popups relevant to a specific page.** The earliest moment that page is available is when it has navigated to the initial url. For example, when opening a* popup with `window.open('http://example.com')`, this event will fire when the network request to "http://example.com" is@@ -4660,8 +4595,8 @@ export interface BrowserContext {* ```** > NOTE: Use- * [page.waitForLoadState(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagewaitforloadstate) to wait- * until the page gets to a particular state (you should not need it in most cases).+ * [page.waitForLoadState([state, options])](https://playwright.dev/docs/api/class-page#pagewaitforloadstatestate-options)+ * to wait until the page gets to a particular state (you should not need it in most cases).*/addListener(event: 'page', listener: (page: Page) => void): this;@@ -4669,16 +4604,14 @@ export interface BrowserContext {* Emitted when Browser context gets closed. This might happen because of one of the following:* - Browser context is closed.* - Browser application is closed or crashed.- * - The [browser.close(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browserclose) method was- * called.+ * - The [browser.close()](https://playwright.dev/docs/api/class-browser#browserclose) method was called.*/removeListener(event: 'close', listener: () => void): this;/*** The event is emitted when a new Page is created in the BrowserContext. The page may still be loading. The event will- * also fire for popup pages. See also- * [page.on('popup')](https://github.com/microsoft/playwright/blob/master/docs/api.md#pageonpopup) to receive events about- * popups relevant to a specific page.+ * also fire for popup pages. See also [page.on('popup')](https://playwright.dev/docs/api/class-page#pageonpopup) to+ * receive events about popups relevant to a specific page.** The earliest moment that page is available is when it has navigated to the initial url. For example, when opening a* popup with `window.open('http://example.com')`, this event will fire when the network request to "http://example.com" is@@ -4693,8 +4626,8 @@ export interface BrowserContext {* ```** > NOTE: Use- * [page.waitForLoadState(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagewaitforloadstate) to wait- * until the page gets to a particular state (you should not need it in most cases).+ * [page.waitForLoadState([state, options])](https://playwright.dev/docs/api/class-page#pagewaitforloadstatestate-options)+ * to wait until the page gets to a particular state (you should not need it in most cases).*/removeListener(event: 'page', listener: (page: Page) => void): this;@@ -4702,16 +4635,14 @@ export interface BrowserContext {* Emitted when Browser context gets closed. This might happen because of one of the following:* - Browser context is closed.* - Browser application is closed or crashed.- * - The [browser.close(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browserclose) method was- * called.+ * - The [browser.close()](https://playwright.dev/docs/api/class-browser#browserclose) method was called.*/off(event: 'close', listener: () => void): this;/*** The event is emitted when a new Page is created in the BrowserContext. The page may still be loading. The event will- * also fire for popup pages. See also- * [page.on('popup')](https://github.com/microsoft/playwright/blob/master/docs/api.md#pageonpopup) to receive events about- * popups relevant to a specific page.+ * also fire for popup pages. See also [page.on('popup')](https://playwright.dev/docs/api/class-page#pageonpopup) to+ * receive events about popups relevant to a specific page.** The earliest moment that page is available is when it has navigated to the initial url. For example, when opening a* popup with `window.open('http://example.com')`, this event will fire when the network request to "http://example.com" is@@ -4726,15 +4657,15 @@ export interface BrowserContext {* ```** > NOTE: Use- * [page.waitForLoadState(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagewaitforloadstate) to wait- * until the page gets to a particular state (you should not need it in most cases).+ * [page.waitForLoadState([state, options])](https://playwright.dev/docs/api/class-page#pagewaitforloadstatestate-options)+ * to wait until the page gets to a particular state (you should not need it in most cases).*/off(event: 'page', listener: (page: Page) => void): this;/*** Adds cookies into this browser context. All pages within this context will have these cookies installed. Cookies can be* obtained via- * [browserContext.cookies(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextcookies).+ * [browserContext.cookies([urls])](https://playwright.dev/docs/api/class-browsercontext#browsercontextcookiesurls).** ```js* await browserContext.addCookies([cookieObject1, cookieObject2]);@@ -4807,8 +4738,8 @@ export interface BrowserContext {* ```** > NOTE: The order of evaluation of multiple scripts installed via- * [browserContext.addInitScript(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextaddinitscript)- * and [page.addInitScript(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pageaddinitscript) is not+ * [browserContext.addInitScript(script[, arg])](https://playwright.dev/docs/api/class-browsercontext#browsercontextaddinitscriptscript-arg)+ * and [page.addInitScript(script[, arg])](https://playwright.dev/docs/api/class-page#pageaddinitscriptscript-arg) is not* defined.* @param script Script to be evaluated in all pages in the browser context.* @param arg Optional argument to pass to `script` (only supported when passing a function).@@ -4869,8 +4800,8 @@ export interface BrowserContext {** If the `callback` returns a [Promise], it will be awaited.*- * See [page.exposeFunction(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pageexposefunction) for- * page-only version.+ * See [page.exposeFunction(name, callback)](https://playwright.dev/docs/api/class-page#pageexposefunctionname-callback)+ * for page-only version.** An example of adding an `md5` function to all pages in the context:*@@ -4937,7 +4868,7 @@ export interface BrowserContext {/*** Returns 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(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#chromiumbrowsercontextbackgroundpages).+ * [chromiumBrowserContext.backgroundPages()](https://playwright.dev/docs/api/class-chromiumbrowsercontext#chromiumbrowsercontextbackgroundpages).*/pages(): Array<Page>;@@ -4965,7 +4896,7 @@ export interface BrowserContext {* await browser.close();* ```*- * Page routes (set up with [page.route(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pageroute))+ * Page routes (set up with [page.route(url, handler)](https://playwright.dev/docs/api/class-page#pagerouteurl-handler))* take precedence over browser context routes when request matches both handlers.** > NOTE: Enabling routing disables http cache.@@ -4976,18 +4907,18 @@ export interface BrowserContext {/*** This setting will change the default maximum navigation time for the following methods and related shortcuts:- * - [page.goBack(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagegoback)- * - [page.goForward(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagegoforward)- * - [page.goto(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagegoto)- * - [page.reload(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagereload)- * - [page.setContent(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetcontent)- * - [page.waitForNavigation(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagewaitfornavigation)+ * - [page.goBack([options])](https://playwright.dev/docs/api/class-page#pagegobackoptions)+ * - [page.goForward([options])](https://playwright.dev/docs/api/class-page#pagegoforwardoptions)+ * - [page.goto(url[, options])](https://playwright.dev/docs/api/class-page#pagegotourl-options)+ * - [page.reload([options])](https://playwright.dev/docs/api/class-page#pagereloadoptions)+ * - [page.setContent(html[, options])](https://playwright.dev/docs/api/class-page#pagesetcontenthtml-options)+ * - [page.waitForNavigation([options])](https://playwright.dev/docs/api/class-page#pagewaitfornavigationoptions)** > NOTE:- * [page.setDefaultNavigationTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaultnavigationtimeout)- * and [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * take priority over- * [browserContext.setDefaultNavigationTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaultnavigationtimeout).+ * [page.setDefaultNavigationTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaultnavigationtimeouttimeout)+ * and [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) take+ * priority over+ * [browserContext.setDefaultNavigationTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaultnavigationtimeouttimeout).* @param timeout Maximum navigation time in milliseconds*/setDefaultNavigationTimeout(timeout: number): void;@@ -4996,11 +4927,11 @@ export interface BrowserContext {* This setting will change the default maximum time for all the methods accepting `timeout` option.** > NOTE:- * [page.setDefaultNavigationTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaultnavigationtimeout),- * [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout) and- * [browserContext.setDefaultNavigationTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaultnavigationtimeout)+ * [page.setDefaultNavigationTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaultnavigationtimeouttimeout),+ * [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) and+ * [browserContext.setDefaultNavigationTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaultnavigationtimeouttimeout)* take priority over- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout).+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout).* @param timeout Maximum time in milliseconds*/setDefaultTimeout(timeout: number): void;@@ -5008,12 +4939,11 @@ export interface BrowserContext {/*** The extra HTTP headers will be sent with every request initiated by any page in the context. These headers are merged* with page-specific extra HTTP headers set with- * [page.setExtraHTTPHeaders(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetextrahttpheaders).- * If page overrides a particular header, page-specific header value will be used instead of the browser context header- * value.+ * [page.setExtraHTTPHeaders(headers)](https://playwright.dev/docs/api/class-page#pagesetextrahttpheadersheaders). If page+ * overrides a particular header, page-specific header value will be used instead of the browser context header value.** > NOTE:- * [browserContext.setExtraHTTPHeaders(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetextrahttpheaders)+ * [browserContext.setExtraHTTPHeaders(headers)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetextrahttpheadersheaders)* does not guarantee the order of headers in the outgoing requests.* @param headers An object containing additional HTTP headers to be sent with every request. All header values must be strings.*/@@ -5027,7 +4957,7 @@ export interface BrowserContext {* ```** > NOTE: Consider using- * [browserContext.grantPermissions(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextgrantpermissions)+ * [browserContext.grantPermissions(permissions[, options])](https://playwright.dev/docs/api/class-browsercontext#browsercontextgrantpermissionspermissions-options)* to grant permissions for the browser context pages to read its geolocation.* @param geolocation*/@@ -5109,10 +5039,10 @@ export interface BrowserContext {/*** Removes a route created with- * [browserContext.route(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextroute). When- * `handler` is not specified, removes all routes for the `url`.- * @param url A glob pattern, regex pattern or predicate receiving [URL] used to register a routing with [browserContext.route(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextroute).- * @param handler Optional handler function used to register a routing with [browserContext.route(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextroute).+ * [browserContext.route(url, handler)](https://playwright.dev/docs/api/class-browsercontext#browsercontextrouteurl-handler).+ * When `handler` is not specified, removes all routes for the `url`.+ * @param url A glob pattern, regex pattern or predicate receiving [URL] used to register a routing with [browserContext.route(url, handler)](https://playwright.dev/docs/api/class-browsercontext#browsercontextrouteurl-handler).+ * @param handler Optional handler function used to register a routing with [browserContext.route(url, handler)](https://playwright.dev/docs/api/class-browsercontext#browsercontextrouteurl-handler).*/unroute(url: string|RegExp|((url: URL) => boolean), handler?: ((route: Route, request: Request) => void)): Promise<void>;@@ -5120,16 +5050,14 @@ export interface BrowserContext {* Emitted when Browser context gets closed. This might happen because of one of the following:* - Browser context is closed.* - Browser application is closed or crashed.- * - The [browser.close(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browserclose) method was- * called.+ * - The [browser.close()](https://playwright.dev/docs/api/class-browser#browserclose) method was called.*/waitForEvent(event: 'close', optionsOrPredicate?: { predicate?: () => boolean, timeout?: number } | (() => boolean)): Promise<void>;/*** The event is emitted when a new Page is created in the BrowserContext. The page may still be loading. The event will- * also fire for popup pages. See also- * [page.on('popup')](https://github.com/microsoft/playwright/blob/master/docs/api.md#pageonpopup) to receive events about- * popups relevant to a specific page.+ * also fire for popup pages. See also [page.on('popup')](https://playwright.dev/docs/api/class-page#pageonpopup) to+ * receive events about popups relevant to a specific page.** The earliest moment that page is available is when it has navigated to the initial url. For example, when opening a* popup with `window.open('http://example.com')`, this event will fire when the network request to "http://example.com" is@@ -5144,8 +5072,8 @@ export interface BrowserContext {* ```** > NOTE: Use- * [page.waitForLoadState(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagewaitforloadstate) to wait- * until the page gets to a particular state (you should not need it in most cases).+ * [page.waitForLoadState([state, options])](https://playwright.dev/docs/api/class-page#pagewaitforloadstatestate-options)+ * to wait until the page gets to a particular state (you should not need it in most cases).*/waitForEvent(event: 'page', optionsOrPredicate?: { predicate?: (page: Page) => boolean, timeout?: number } | ((page: Page) => boolean)): Promise<Page>;}@@ -5225,7 +5153,8 @@ export interface Worker {/*** JSHandle represents an in-page JavaScript object. JSHandles can be created with the- * [page.evaluateHandle(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pageevaluatehandle) method.+ * [page.evaluateHandle(pageFunction[, arg])](https://playwright.dev/docs/api/class-page#pageevaluatehandlepagefunction-arg)+ * method.** ```js* const windowHandle = await page.evaluateHandle(() => window);@@ -5233,13 +5162,14 @@ export interface Worker {* ```** JSHandle prevents the referenced JavaScript object being garbage collected unless the handle is exposed with- * [jsHandle.dispose(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#jshandledispose). JSHandles are- * auto-disposed when their origin frame gets navigated or the parent context gets destroyed.+ * [jsHandle.dispose()](https://playwright.dev/docs/api/class-jshandle#jshandledispose). JSHandles are auto-disposed when+ * their origin frame gets navigated or the parent context gets destroyed.** JSHandle instances can be used as an argument in- * [page.$eval(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pageeval),- * [page.evaluate(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pageevaluate) and- * [page.evaluateHandle(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pageevaluatehandle) methods.+ * [page.$eval(selector, pageFunction[, arg])](https://playwright.dev/docs/api/class-page#pageevalselector-pagefunction-arg),+ * [page.evaluate(pageFunction[, arg])](https://playwright.dev/docs/api/class-page#pageevaluatepagefunction-arg) and+ * [page.evaluateHandle(pageFunction[, arg])](https://playwright.dev/docs/api/class-page#pageevaluatehandlepagefunction-arg)+ * methods.*/export interface JSHandle<T = any> {/**@@ -5274,8 +5204,9 @@ export interface JSHandle<T = any> {* If the function passed to the `jsHandle.evaluateHandle` returns a [Promise], then `jsHandle.evaluateHandle` would wait* for the promise to resolve and return its value.*- * See [page.evaluateHandle(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pageevaluatehandle) for- * more details.+ * See+ * [page.evaluateHandle(pageFunction[, arg])](https://playwright.dev/docs/api/class-page#pageevaluatehandlepagefunction-arg)+ * for more details.* @param pageFunction Function to be evaluated* @param arg Optional argument to pass to `pageFunction`*/@@ -5322,7 +5253,7 @@ export interface JSHandle<T = any> {* - extends: [JSHandle]** ElementHandle represents an in-page DOM element. ElementHandles can be created with the- * [page.$(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#page) method.+ * [page.$(selector)](https://playwright.dev/docs/api/class-page#pageselector) method.** ```js* const { chromium } = require('playwright'); // Or 'firefox' or 'webkit'.@@ -5338,28 +5269,27 @@ export interface JSHandle<T = any> {* ```** ElementHandle prevents DOM element from garbage collection unless the handle is disposed with- * [jsHandle.dispose(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#jshandledispose). ElementHandles- * are auto-disposed when their origin frame gets navigated.+ * [jsHandle.dispose()](https://playwright.dev/docs/api/class-jshandle#jshandledispose). ElementHandles are auto-disposed+ * when their origin frame gets navigated.** ElementHandle instances can be used as an argument in- * [page.$eval(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pageeval) and- * [page.evaluate(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pageevaluate) methods.+ * [page.$eval(selector, pageFunction[, arg])](https://playwright.dev/docs/api/class-page#pageevalselector-pagefunction-arg)+ * and [page.evaluate(pageFunction[, arg])](https://playwright.dev/docs/api/class-page#pageevaluatepagefunction-arg)+ * methods.*/export interface ElementHandle<T=Node> extends JSHandle<T> {/*** The method finds an element matching the specified selector in the `ElementHandle`'s subtree. See- * [Working with selectors](https://github.com/microsoft/playwright/blob/master/docs/selectors.md#working-with-selectors) for more details. If no elements match the selector,- * returns `null`.- * @param selector A selector to query for. See [working with selectors](https://github.com/microsoft/playwright/blob/master/docs/selectors.md#working-with-selectors) for more details.+ * [Working with selectors](https://playwright.dev/docs/selectors) for more details. If no elements match the selector, returns `null`.+ * @param selector A selector to query for. See [working with selectors](https://playwright.dev/docs/selectors) for more details.*/$<K extends keyof HTMLElementTagNameMap>(selector: K): Promise<ElementHandleForTag<K> | null>;$(selector: string): Promise<ElementHandle<SVGElement | HTMLElement> | null>;/*** The method finds all elements matching the specified selector in the `ElementHandle`s subtree. See- * [Working with selectors](https://github.com/microsoft/playwright/blob/master/docs/selectors.md#working-with-selectors) for more details. If no elements match the selector,- * returns empty array.- * @param selector A selector to query for. See [working with selectors](https://github.com/microsoft/playwright/blob/master/docs/selectors.md#working-with-selectors) for more details.+ * [Working with selectors](https://playwright.dev/docs/selectors) for more details. If no elements match the selector, returns empty array.+ * @param selector A selector to query for. See [working with selectors](https://playwright.dev/docs/selectors) for more details.*/$$<K extends keyof HTMLElementTagNameMap>(selector: K): Promise<ElementHandleForTag<K>[]>;$$(selector: string): Promise<ElementHandle<SVGElement | HTMLElement>[]>;@@ -5368,8 +5298,8 @@ export interface ElementHandle<T=Node> extends JSHandle<T> {* Returns the return value of `pageFunction`** The method finds an element matching the specified selector in the `ElementHandle`s subtree and passes it as a first- * argument to `pageFunction`. See [Working with selectors](https://github.com/microsoft/playwright/blob/master/docs/selectors.md#working-with-selectors) for more details. If no- * elements match the selector, the method throws an error.+ * argument to `pageFunction`. See [Working with selectors](https://playwright.dev/docs/selectors) for more details. If no elements match the+ * selector, the method throws an error.** If `pageFunction` returns a [Promise], then `frame.$eval` would wait for the promise to resolve and return its value.*@@ -5381,7 +5311,7 @@ export interface ElementHandle<T=Node> extends JSHandle<T> {* expect(await tweetHandle.$eval('.retweets', node => node.innerText)).toBe('10');* ```*- * @param selector A selector to query for. See [working with selectors](https://github.com/microsoft/playwright/blob/master/docs/selectors.md#working-with-selectors) for more details.+ * @param selector A selector to query for. See [working with selectors](https://playwright.dev/docs/selectors) for more details.* @param pageFunction Function to be evaluated in browser context* @param arg Optional argument to pass to `pageFunction`*/@@ -5394,8 +5324,7 @@ export interface ElementHandle<T=Node> extends JSHandle<T> {* Returns the return value of `pageFunction`** The method finds all elements matching the specified selector in the `ElementHandle`'s subtree and passes an array of- * matched elements as a first argument to `pageFunction`. See- * [Working with selectors](https://github.com/microsoft/playwright/blob/master/docs/selectors.md#working-with-selectors) for more details.+ * matched elements as a first argument to `pageFunction`. See [Working with selectors](https://playwright.dev/docs/selectors) for more details.** If `pageFunction` returns a [Promise], then `frame.$$eval` would wait for the promise to resolve and return its value.*@@ -5413,7 +5342,7 @@ export interface ElementHandle<T=Node> extends JSHandle<T> {* expect(await feedHandle.$$eval('.tweet', nodes => nodes.map(n => n.innerText))).toEqual(['Hello!', 'Hi!']);* ```*- * @param selector A selector to query for. See [working with selectors](https://github.com/microsoft/playwright/blob/master/docs/selectors.md#working-with-selectors) for more details.+ * @param selector A selector to query for. See [working with selectors](https://playwright.dev/docs/selectors) for more details.* @param pageFunction Function to be evaluated in browser context* @param arg Optional argument to pass to `pageFunction`*/@@ -5439,8 +5368,9 @@ export interface ElementHandle<T=Node> extends JSHandle<T> {* ```** > NOTE: This method does not work across navigations, use- * [page.waitForSelector(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagewaitforselector) instead.- * @param selector A selector to query for. See [working with selectors](https://github.com/microsoft/playwright/blob/master/docs/selectors.md#working-with-selectors) for more details.+ * [page.waitForSelector(selector[, options])](https://playwright.dev/docs/api/class-page#pagewaitforselectorselector-options)+ * instead.+ * @param selector A selector to query for. See [working with selectors](https://playwright.dev/docs/selectors) for more details.* @param options*/waitForSelector<K extends keyof HTMLElementTagNameMap>(selector: K, options?: ElementHandleWaitForSelectorOptionsNotHidden): Promise<ElementHandleForTag<K>>;@@ -5493,10 +5423,9 @@ export interface ElementHandle<T=Node> extends JSHandle<T> {* This method checks the element by performing the following steps:* 1. Ensure that element is a checkbox or a radio input. If not, this method rejects. If the element is already* checked, this method returns immediately.- * 1. Wait for [actionability](https://github.com/microsoft/playwright/blob/master/docs/actionability.md) checks on the element, unless `force` option is set.+ * 1. Wait for [actionability](https://playwright.dev/docs/actionability) checks on the element, unless `force` option is set.* 1. Scroll the element into view if needed.- * 1. Use [page.mouse](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagemouse) to click in the center- * of the element.+ * 1. Use [page.mouse](https://playwright.dev/docs/api/class-page#pagemouse) to click in the center of the element.* 1. Wait for initiated navigations to either succeed or fail, unless `noWaitAfter` option is set.* 1. Ensure that the element is now checked. If not, this method rejects.*@@ -5508,7 +5437,7 @@ export interface ElementHandle<T=Node> extends JSHandle<T> {*/check(options?: {/**- * Whether to bypass the [actionability](https://github.com/microsoft/playwright/blob/master/docs/actionability.md) checks. Defaults to `false`.+ * Whether to bypass the [actionability](https://playwright.dev/docs/actionability) checks. Defaults to `false`.*/force?: boolean;@@ -5522,19 +5451,18 @@ export interface ElementHandle<T=Node> extends JSHandle<T> {/*** Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by* using the- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;}): Promise<void>;/*** This method clicks the element by performing the following steps:- * 1. Wait for [actionability](https://github.com/microsoft/playwright/blob/master/docs/actionability.md) checks on the element, unless `force` option is set.+ * 1. Wait for [actionability](https://playwright.dev/docs/actionability) checks on the element, unless `force` option is set.* 1. Scroll the element into view if needed.- * 1. Use [page.mouse](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagemouse) to click in the center- * of the element, or the specified `position`.+ * 1. Use [page.mouse](https://playwright.dev/docs/api/class-page#pagemouse) to click in the center of the element, or+ * the specified `position`.* 1. Wait for initiated navigations to either succeed or fail, unless `noWaitAfter` option is set.** If the element is detached from the DOM at any moment during the action, this method rejects.@@ -5560,7 +5488,7 @@ export interface ElementHandle<T=Node> extends JSHandle<T> {delay?: number;/**- * Whether to bypass the [actionability](https://github.com/microsoft/playwright/blob/master/docs/actionability.md) checks. Defaults to `false`.+ * Whether to bypass the [actionability](https://playwright.dev/docs/actionability) checks. Defaults to `false`.*/force?: boolean;@@ -5590,9 +5518,8 @@ export interface ElementHandle<T=Node> extends JSHandle<T> {/*** Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by* using the- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;}): Promise<void>;@@ -5604,10 +5531,10 @@ export interface ElementHandle<T=Node> extends JSHandle<T> {/*** This method double clicks the element by performing the following steps:- * 1. Wait for [actionability](https://github.com/microsoft/playwright/blob/master/docs/actionability.md) checks on the element, unless `force` option is set.+ * 1. Wait for [actionability](https://playwright.dev/docs/actionability) checks on the element, unless `force` option is set.* 1. Scroll the element into view if needed.- * 1. Use [page.mouse](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagemouse) to double click in the- * center of the element, or the specified `position`.+ * 1. Use [page.mouse](https://playwright.dev/docs/api/class-page#pagemouse) to double click in the center of the+ * element, or the specified `position`.* 1. Wait for initiated navigations to either succeed or fail, unless `noWaitAfter` option is set. Note that if the* first click of the `dblclick()` triggers a navigation event, this method will reject.*@@ -5631,7 +5558,7 @@ export interface ElementHandle<T=Node> extends JSHandle<T> {delay?: number;/**- * Whether to bypass the [actionability](https://github.com/microsoft/playwright/blob/master/docs/actionability.md) checks. Defaults to `false`.+ * Whether to bypass the [actionability](https://playwright.dev/docs/actionability) checks. Defaults to `false`.*/force?: boolean;@@ -5661,9 +5588,8 @@ export interface ElementHandle<T=Node> extends JSHandle<T> {/*** Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by* using the- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;}): Promise<void>;@@ -5703,7 +5629,7 @@ export interface ElementHandle<T=Node> extends JSHandle<T> {dispatchEvent(type: string, eventInit?: EvaluationArgument): Promise<void>;/**- * This method waits for [actionability](https://github.com/microsoft/playwright/blob/master/docs/actionability.md) checks, focuses the element, fills it and triggers an `input`+ * This method waits for [actionability](https://playwright.dev/docs/actionability) checks, focuses the element, fills it and triggers an `input`* event after filling. If the element is not an `<input>`, `<textarea>` or `[contenteditable]` element, this method throws* an error. Note that you can pass an empty string to clear the input field.* @param value Value to set for the `<input>`, `<textarea>` or `[contenteditable]` element.@@ -5720,9 +5646,8 @@ export interface ElementHandle<T=Node> extends JSHandle<T> {/*** Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by* using the- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;}): Promise<void>;@@ -5740,10 +5665,10 @@ export interface ElementHandle<T=Node> extends JSHandle<T> {/*** This method hovers over the element by performing the following steps:- * 1. Wait for [actionability](https://github.com/microsoft/playwright/blob/master/docs/actionability.md) checks on the element, unless `force` option is set.+ * 1. Wait for [actionability](https://playwright.dev/docs/actionability) checks on the element, unless `force` option is set.* 1. Scroll the element into view if needed.- * 1. Use [page.mouse](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagemouse) to hover over the- * center of the element, or the specified `position`.+ * 1. Use [page.mouse](https://playwright.dev/docs/api/class-page#pagemouse) to hover over the center of the element, or+ * the specified `position`.* 1. Wait for initiated navigations to either succeed or fail, unless `noWaitAfter` option is set.** If the element is detached from the DOM at any moment during the action, this method rejects.@@ -5754,7 +5679,7 @@ export interface ElementHandle<T=Node> extends JSHandle<T> {*/hover(options?: {/**- * Whether to bypass the [actionability](https://github.com/microsoft/playwright/blob/master/docs/actionability.md) checks. Defaults to `false`.+ * Whether to bypass the [actionability](https://playwright.dev/docs/actionability) checks. Defaults to `false`.*/force?: boolean;@@ -5777,9 +5702,8 @@ export interface ElementHandle<T=Node> extends JSHandle<T> {/*** Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by* using the- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;}): Promise<void>;@@ -5800,27 +5724,27 @@ export interface ElementHandle<T=Node> extends JSHandle<T> {isChecked(): Promise<boolean>;/**- * Returns whether the element is disabled, the opposite of [enabled](https://github.com/microsoft/playwright/blob/master/docs/actionability.md#enabled).+ * Returns whether the element is disabled, the opposite of [enabled](https://playwright.dev/docs/actionability#enabled).*/isDisabled(): Promise<boolean>;/**- * Returns whether the element is [editable](https://github.com/microsoft/playwright/blob/master/docs/actionability.md#editable).+ * Returns whether the element is [editable](https://playwright.dev/docs/actionability#editable).*/isEditable(): Promise<boolean>;/**- * Returns whether the element is [enabled](https://github.com/microsoft/playwright/blob/master/docs/actionability.md#enabled).+ * Returns whether the element is [enabled](https://playwright.dev/docs/actionability#enabled).*/isEnabled(): Promise<boolean>;/**- * Returns whether the element is hidden, the opposite of [visible](https://github.com/microsoft/playwright/blob/master/docs/actionability.md#visible).+ * Returns whether the element is hidden, the opposite of [visible](https://playwright.dev/docs/actionability#visible).*/isHidden(): Promise<boolean>;/**- * Returns whether the element is [visible](https://github.com/microsoft/playwright/blob/master/docs/actionability.md#visible).+ * Returns whether the element is [visible](https://playwright.dev/docs/actionability#visible).*/isVisible(): Promise<boolean>;@@ -5830,9 +5754,8 @@ export interface ElementHandle<T=Node> extends JSHandle<T> {ownerFrame(): Promise<null|Frame>;/**- * Focuses the element, and then uses- * [keyboard.down(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#keyboarddown) and- * [keyboard.up(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#keyboardup).+ * Focuses the element, and then uses [keyboard.down(key)](https://playwright.dev/docs/api/class-keyboard#keyboarddownkey)+ * and [keyboard.up(key)](https://playwright.dev/docs/api/class-keyboard#keyboardupkey).** `key` can specify the intended [keyboardEvent.key](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key)* value or a single character to generate the text for. A superset of the `key` values can be found@@ -5869,9 +5792,8 @@ export interface ElementHandle<T=Node> extends JSHandle<T> {/*** Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by* using the- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;}): Promise<void>;@@ -5879,7 +5801,7 @@ export interface ElementHandle<T=Node> extends JSHandle<T> {/*** Returns the buffer with the captured screenshot.*- * This method waits for the [actionability](https://github.com/microsoft/playwright/blob/master/docs/actionability.md) checks, then scrolls element into view before taking a+ * This method waits for the [actionability](https://playwright.dev/docs/actionability) checks, then scrolls element into view before taking a* screenshot. If the element is detached from DOM, the method throws an error.* @param options*/@@ -5905,9 +5827,8 @@ export interface ElementHandle<T=Node> extends JSHandle<T> {/*** Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by* using the- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;@@ -5918,7 +5839,7 @@ export interface ElementHandle<T=Node> extends JSHandle<T> {}): Promise<Buffer>;/**- * This method waits for [actionability](https://github.com/microsoft/playwright/blob/master/docs/actionability.md) checks, then tries to scroll element into view, unless it is+ * This method waits for [actionability](https://playwright.dev/docs/actionability) checks, then tries to scroll element into view, unless it is* completely visible as defined by* [IntersectionObserver](https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API)'s `ratio`.*@@ -5930,9 +5851,8 @@ export interface ElementHandle<T=Node> extends JSHandle<T> {/*** Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by* using the- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;}): Promise<void>;@@ -6001,15 +5921,14 @@ export interface ElementHandle<T=Node> extends JSHandle<T> {/*** Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by* using the- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;}): Promise<Array<string>>;/**- * This method waits for [actionability](https://github.com/microsoft/playwright/blob/master/docs/actionability.md) checks, then focuses the element and selects all its text+ * This method waits for [actionability](https://playwright.dev/docs/actionability) checks, then focuses the element and selects all its text* content.* @param options*/@@ -6017,9 +5936,8 @@ export interface ElementHandle<T=Node> extends JSHandle<T> {/*** Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by* using the- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;}): Promise<void>;@@ -6074,19 +5992,18 @@ export interface ElementHandle<T=Node> extends JSHandle<T> {/*** Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by* using the- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;}): Promise<void>;/*** This method taps the element by performing the following steps:- * 1. Wait for [actionability](https://github.com/microsoft/playwright/blob/master/docs/actionability.md) checks on the element, unless `force` option is set.+ * 1. Wait for [actionability](https://playwright.dev/docs/actionability) checks on the element, unless `force` option is set.* 1. Scroll the element into view if needed.- * 1. Use [page.touchscreen](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagetouchscreen) to tap the- * center of the element, or the specified `position`.+ * 1. Use [page.touchscreen](https://playwright.dev/docs/api/class-page#pagetouchscreen) to tap the center of the+ * element, or the specified `position`.* 1. Wait for initiated navigations to either succeed or fail, unless `noWaitAfter` option is set.** If the element is detached from the DOM at any moment during the action, this method rejects.@@ -6099,7 +6016,7 @@ export interface ElementHandle<T=Node> extends JSHandle<T> {*/tap(options?: {/**- * Whether to bypass the [actionability](https://github.com/microsoft/playwright/blob/master/docs/actionability.md) checks. Defaults to `false`.+ * Whether to bypass the [actionability](https://playwright.dev/docs/actionability) checks. Defaults to `false`.*/force?: boolean;@@ -6129,9 +6046,8 @@ export interface ElementHandle<T=Node> extends JSHandle<T> {/*** Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by* using the- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;}): Promise<void>;@@ -6145,7 +6061,7 @@ export interface ElementHandle<T=Node> extends JSHandle<T> {* Focuses the element, and then sends a `keydown`, `keypress`/`input`, and `keyup` event for each character in the text.** To press a special key, like `Control` or `ArrowDown`, use- * [elementHandle.press(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#elementhandlepress).+ * [elementHandle.press(key[, options])](https://playwright.dev/docs/api/class-elementhandle#elementhandlepresskey-options).** ```js* await elementHandle.type('Hello'); // Types instantly@@ -6179,9 +6095,8 @@ export interface ElementHandle<T=Node> extends JSHandle<T> {/*** Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by* using the- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;}): Promise<void>;@@ -6190,10 +6105,9 @@ export interface ElementHandle<T=Node> extends JSHandle<T> {* This method checks the element by performing the following steps:* 1. Ensure that element is a checkbox or a radio input. If not, this method rejects. If the element is already* unchecked, this method returns immediately.- * 1. Wait for [actionability](https://github.com/microsoft/playwright/blob/master/docs/actionability.md) checks on the element, unless `force` option is set.+ * 1. Wait for [actionability](https://playwright.dev/docs/actionability) checks on the element, unless `force` option is set.* 1. Scroll the element into view if needed.- * 1. Use [page.mouse](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagemouse) to click in the center- * of the element.+ * 1. Use [page.mouse](https://playwright.dev/docs/api/class-page#pagemouse) to click in the center of the element.* 1. Wait for initiated navigations to either succeed or fail, unless `noWaitAfter` option is set.* 1. Ensure that the element is now unchecked. If not, this method rejects.*@@ -6205,7 +6119,7 @@ export interface ElementHandle<T=Node> extends JSHandle<T> {*/uncheck(options?: {/**- * Whether to bypass the [actionability](https://github.com/microsoft/playwright/blob/master/docs/actionability.md) checks. Defaults to `false`.+ * Whether to bypass the [actionability](https://playwright.dev/docs/actionability) checks. Defaults to `false`.*/force?: boolean;@@ -6219,9 +6133,8 @@ export interface ElementHandle<T=Node> extends JSHandle<T> {/*** Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by* using the- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;}): Promise<void>;@@ -6229,16 +6142,16 @@ export interface ElementHandle<T=Node> extends JSHandle<T> {/*** Returns when the element satisfies the `state`.*- * Depending on the `state` parameter, this method waits for one of the [actionability](https://github.com/microsoft/playwright/blob/master/docs/actionability.md) checks to pass.+ * Depending on the `state` parameter, this method waits for one of the [actionability](https://playwright.dev/docs/actionability) checks to pass.* This method throws when the element is detached while waiting, unless waiting for the `"hidden"` state.- * - `"visible"` Wait until the element is [visible](https://github.com/microsoft/playwright/blob/master/docs/actionability.md#visible).- * - `"hidden"` Wait until the element is [not visible](https://github.com/microsoft/playwright/blob/master/docs/actionability.md#visible) or- * [not attached](https://github.com/microsoft/playwright/blob/master/docs/actionability.md#attached). Note that waiting for hidden does not throw when the element detaches.- * - `"stable"` Wait until the element is both [visible](https://github.com/microsoft/playwright/blob/master/docs/actionability.md#visible) and- * [stable](https://github.com/microsoft/playwright/blob/master/docs/actionability.md#stable).- * - `"enabled"` Wait until the element is [enabled](https://github.com/microsoft/playwright/blob/master/docs/actionability.md#enabled).- * - `"disabled"` Wait until the element is [not enabled](https://github.com/microsoft/playwright/blob/master/docs/actionability.md#enabled).- * - `"editable"` Wait until the element is [editable](https://github.com/microsoft/playwright/blob/master/docs/actionability.md#editable).+ * - `"visible"` Wait until the element is [visible](https://playwright.dev/docs/actionability#visible).+ * - `"hidden"` Wait until the element is [not visible](https://playwright.dev/docs/actionability#visible) or+ * [not attached](https://playwright.dev/docs/actionability#attached). Note that waiting for hidden does not throw when the element detaches.+ * - `"stable"` Wait until the element is both [visible](https://playwright.dev/docs/actionability#visible) and+ * [stable](https://playwright.dev/docs/actionability#stable).+ * - `"enabled"` Wait until the element is [enabled](https://playwright.dev/docs/actionability#enabled).+ * - `"disabled"` Wait until the element is [not enabled](https://playwright.dev/docs/actionability#enabled).+ * - `"editable"` Wait until the element is [editable](https://playwright.dev/docs/actionability#editable).** If the element does not satisfy the condition for the `timeout` milliseconds, this method will throw.* @param state A state to wait for, see below for more details.@@ -6248,9 +6161,8 @@ export interface ElementHandle<T=Node> extends JSHandle<T> {/*** Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by* using the- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;}): Promise<void>;}@@ -6304,7 +6216,7 @@ export interface BrowserType<Browser> {* [Chrome Canary](https://www.google.com/chrome/browser/canary.html) or* [Dev Channel](https://www.chromium.org/getting-involved/dev-channel) build is suggested.* >- * > In [browserType.launch(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsertypelaunch) above,+ * > In [browserType.launch([options])](https://playwright.dev/docs/api/class-browsertype#browsertypelaunchoptions) above,* any mention of Chromium also applies to Chrome.* >* > See [`this article`](https://www.howtogeek.com/202825/what%E2%80%99s-the-difference-between-chromium-and-chrome/) for@@ -6348,8 +6260,8 @@ export interface BrowserType<Browser> {/*** Emulates `'prefers-colors-scheme'` media feature, supported values are `'light'`, `'dark'`, `'no-preference'`. See- * [page.emulateMedia(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pageemulatemedia) for more- * details. Defaults to '`light`'.+ * [page.emulateMedia(params)](https://playwright.dev/docs/api/class-page#pageemulatemediaparams) for more details.+ * Defaults to '`light`'.*/colorScheme?: "light"|"dark"|"no-preference";@@ -6481,7 +6393,7 @@ export interface BrowserType<Browser> {/*** A list of permissions to grant to all pages in this context. See- * [browserContext.grantPermissions(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextgrantpermissions)+ * [browserContext.grantPermissions(permissions[, options])](https://playwright.dev/docs/api/class-browsercontext#browsercontextgrantpermissionspermissions-options)* for more details.*/permissions?: Array<string>;@@ -6515,8 +6427,8 @@ export interface BrowserType<Browser> {/*** Enables [HAR](http://www.softwareishard.com/blog/har-12-spec) recording for all pages into `recordHar.path` file. If not* specified, the HAR is not recorded. Make sure to await- * [browserContext.close(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextclose) for the- * HAR to be saved.+ * [browserContext.close()](https://playwright.dev/docs/api/class-browsercontext#browsercontextclose) for the HAR to be+ * saved.*/recordHar?: {/**@@ -6532,8 +6444,7 @@ export interface BrowserType<Browser> {/*** Enables video recording for all pages into `recordVideo.dir` directory. If not specified videos are not recorded. Make- * sure to await- * [browserContext.close(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextclose) for+ * sure to await [browserContext.close()](https://playwright.dev/docs/api/class-browsercontext#browsercontextclose) for* videos to be saved.*/recordVideo?: {@@ -6766,10 +6677,9 @@ export interface BrowserType<Browser> {* - extends: [Browser]** Chromium-specific features including Tracing, service worker support, etc. You can use- * [chromiumBrowser.startTracing(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#chromiumbrowserstarttracing)- * and- * [chromiumBrowser.stopTracing(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#chromiumbrowserstoptracing)- * to create a trace file which can be opened in Chrome DevTools or+ * [chromiumBrowser.startTracing([page, options])](https://playwright.dev/docs/api/class-chromiumbrowser#chromiumbrowserstarttracingpage-options)+ * and [chromiumBrowser.stopTracing()](https://playwright.dev/docs/api/class-chromiumbrowser#chromiumbrowserstoptracing) to+ * create a trace file which can be opened in Chrome DevTools or* [timeline viewer](https://chromedevtools.github.io/timeline-viewer/).** ```js@@ -6929,8 +6839,8 @@ export namespace errors {* - extends: [Error]** TimeoutError is emitted whenever certain operations are terminated due to timeout, e.g.- * [page.waitForSelector(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagewaitforselector) or- * [browserType.launch(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsertypelaunch).+ * [page.waitForSelector(selector[, options])](https://playwright.dev/docs/api/class-page#pagewaitforselectorselector-options)+ * or [browserType.launch([options])](https://playwright.dev/docs/api/class-browsertype#browsertypelaunchoptions).*/class TimeoutError extends Error {}@@ -7039,7 +6949,7 @@ export {};* - extends: [EventEmitter]** A Browser is created via- * [browserType.launch(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsertypelaunch). An example+ * [browserType.launch([options])](https://playwright.dev/docs/api/class-browsertype#browsertypelaunchoptions). An example* of using a [Browser] to create a [Page]:** ```js@@ -7058,46 +6968,41 @@ export interface Browser extends EventEmitter {/*** Emitted when Browser gets disconnected from the browser application. This might happen because of one of the following:* - Browser application is closed or crashed.- * - The [browser.close(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browserclose) method was- * called.+ * - The [browser.close()](https://playwright.dev/docs/api/class-browser#browserclose) method was called.*/on(event: 'disconnected', listener: () => void): this;/*** Emitted when Browser gets disconnected from the browser application. This might happen because of one of the following:* - Browser application is closed or crashed.- * - The [browser.close(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browserclose) method was- * called.+ * - The [browser.close()](https://playwright.dev/docs/api/class-browser#browserclose) method was called.*/once(event: 'disconnected', listener: () => void): this;/*** Emitted when Browser gets disconnected from the browser application. This might happen because of one of the following:* - Browser application is closed or crashed.- * - The [browser.close(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browserclose) method was- * called.+ * - The [browser.close()](https://playwright.dev/docs/api/class-browser#browserclose) method was called.*/addListener(event: 'disconnected', listener: () => void): this;/*** Emitted when Browser gets disconnected from the browser application. This might happen because of one of the following:* - Browser application is closed or crashed.- * - The [browser.close(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browserclose) method was- * called.+ * - The [browser.close()](https://playwright.dev/docs/api/class-browser#browserclose) method was called.*/removeListener(event: 'disconnected', listener: () => void): this;/*** Emitted when Browser gets disconnected from the browser application. This might happen because of one of the following:* - Browser application is closed or crashed.- * - The [browser.close(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browserclose) method was- * called.+ * - The [browser.close()](https://playwright.dev/docs/api/class-browser#browserclose) method was called.*/off(event: 'disconnected', listener: () => void): this;/*** In case this browser is obtained using- * [browserType.launch(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsertypelaunch), closes the+ * [browserType.launch([options])](https://playwright.dev/docs/api/class-browsertype#browsertypelaunchoptions), closes the* browser and all of its pages (if any were opened).** In case this browser is connected to, clears all created contexts belonging to this browser and disconnects from the@@ -7149,9 +7054,9 @@ export interface Browser extends EventEmitter {** This is a convenience API that should only be used for the single-page scenarios and short snippets. Production code and* testing frameworks should explicitly create- * [browser.newContext(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsernewcontext) followed by- * the [browserContext.newPage(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextnewpage)- * to control their exact life times.+ * [browser.newContext([options])](https://playwright.dev/docs/api/class-browser#browsernewcontextoptions) followed by the+ * [browserContext.newPage()](https://playwright.dev/docs/api/class-browsercontext#browsercontextnewpage) to control their+ * exact life times.* @param options*/newPage(options?: {@@ -7167,8 +7072,8 @@ export interface Browser extends EventEmitter {/*** Emulates `'prefers-colors-scheme'` media feature, supported values are `'light'`, `'dark'`, `'no-preference'`. See- * [page.emulateMedia(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pageemulatemedia) for more- * details. Defaults to '`light`'.+ * [page.emulateMedia(params)](https://playwright.dev/docs/api/class-page#pageemulatemediaparams) for more details.+ * Defaults to '`light`'.*/colorScheme?: "light"|"dark"|"no-preference";@@ -7247,7 +7152,7 @@ export interface Browser extends EventEmitter {/*** A list of permissions to grant to all pages in this context. See- * [browserContext.grantPermissions(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextgrantpermissions)+ * [browserContext.grantPermissions(permissions[, options])](https://playwright.dev/docs/api/class-browsercontext#browsercontextgrantpermissionspermissions-options)* for more details.*/permissions?: Array<string>;@@ -7283,8 +7188,8 @@ export interface Browser extends EventEmitter {/*** Enables [HAR](http://www.softwareishard.com/blog/har-12-spec) recording for all pages into `recordHar.path` file. If not* specified, the HAR is not recorded. Make sure to await- * [browserContext.close(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextclose) for the- * HAR to be saved.+ * [browserContext.close()](https://playwright.dev/docs/api/class-browsercontext#browsercontextclose) for the HAR to be+ * saved.*/recordHar?: {/**@@ -7300,8 +7205,7 @@ export interface Browser extends EventEmitter {/*** Enables video recording for all pages into `recordVideo.dir` directory. If not specified videos are not recorded. Make- * sure to await- * [browserContext.close(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextclose) for+ * sure to await [browserContext.close()](https://playwright.dev/docs/api/class-browsercontext#browsercontextclose) for* videos to be saved.*/recordVideo?: {@@ -7331,7 +7235,7 @@ export interface Browser extends EventEmitter {/*** Populates context with given storage state. This method can be used to initialize context with logged-in information* obtained via- * [browserContext.storageState(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextstoragestate).+ * [browserContext.storageState([options])](https://playwright.dev/docs/api/class-browsercontext#browsercontextstoragestateoptions).* Either a path to the file with saved storage, or an object with the following fields:*/storageState?: string|{@@ -7494,8 +7398,8 @@ export interface BrowserServer {* Browser websocket url.** Browser websocket endpoint which can be used as an argument to- * [browserType.connect(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsertypeconnect) to- * establish connection to the browser.+ * [browserType.connect(params)](https://playwright.dev/docs/api/class-browsertype#browsertypeconnectparams) to establish+ * connection to the browser.*/wsEndpoint(): string;}@@ -7527,16 +7431,14 @@ export interface ChromiumBrowserContext extends BrowserContext {* Emitted when Browser context gets closed. This might happen because of one of the following:* - Browser context is closed.* - Browser application is closed or crashed.- * - The [browser.close(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browserclose) method was- * called.+ * - The [browser.close()](https://playwright.dev/docs/api/class-browser#browserclose) method was called.*/on(event: 'close', listener: () => void): this;/*** The event is emitted when a new Page is created in the BrowserContext. The page may still be loading. The event will- * also fire for popup pages. See also- * [page.on('popup')](https://github.com/microsoft/playwright/blob/master/docs/api.md#pageonpopup) to receive events about- * popups relevant to a specific page.+ * also fire for popup pages. See also [page.on('popup')](https://playwright.dev/docs/api/class-page#pageonpopup) to+ * receive events about popups relevant to a specific page.** The earliest moment that page is available is when it has navigated to the initial url. For example, when opening a* popup with `window.open('http://example.com')`, this event will fire when the network request to "http://example.com" is@@ -7551,8 +7453,8 @@ export interface ChromiumBrowserContext extends BrowserContext {* ```** > NOTE: Use- * [page.waitForLoadState(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagewaitforloadstate) to wait- * until the page gets to a particular state (you should not need it in most cases).+ * [page.waitForLoadState([state, options])](https://playwright.dev/docs/api/class-page#pagewaitforloadstatestate-options)+ * to wait until the page gets to a particular state (you should not need it in most cases).*/on(event: 'page', listener: (page: Page) => void): this;@@ -7572,16 +7474,14 @@ export interface ChromiumBrowserContext extends BrowserContext {* Emitted when Browser context gets closed. This might happen because of one of the following:* - Browser context is closed.* - Browser application is closed or crashed.- * - The [browser.close(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browserclose) method was- * called.+ * - The [browser.close()](https://playwright.dev/docs/api/class-browser#browserclose) method was called.*/once(event: 'close', listener: () => void): this;/*** The event is emitted when a new Page is created in the BrowserContext. The page may still be loading. The event will- * also fire for popup pages. See also- * [page.on('popup')](https://github.com/microsoft/playwright/blob/master/docs/api.md#pageonpopup) to receive events about- * popups relevant to a specific page.+ * also fire for popup pages. See also [page.on('popup')](https://playwright.dev/docs/api/class-page#pageonpopup) to+ * receive events about popups relevant to a specific page.** The earliest moment that page is available is when it has navigated to the initial url. For example, when opening a* popup with `window.open('http://example.com')`, this event will fire when the network request to "http://example.com" is@@ -7596,8 +7496,8 @@ export interface ChromiumBrowserContext extends BrowserContext {* ```** > NOTE: Use- * [page.waitForLoadState(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagewaitforloadstate) to wait- * until the page gets to a particular state (you should not need it in most cases).+ * [page.waitForLoadState([state, options])](https://playwright.dev/docs/api/class-page#pagewaitforloadstatestate-options)+ * to wait until the page gets to a particular state (you should not need it in most cases).*/once(event: 'page', listener: (page: Page) => void): this;@@ -7617,16 +7517,14 @@ export interface ChromiumBrowserContext extends BrowserContext {* Emitted when Browser context gets closed. This might happen because of one of the following:* - Browser context is closed.* - Browser application is closed or crashed.- * - The [browser.close(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browserclose) method was- * called.+ * - The [browser.close()](https://playwright.dev/docs/api/class-browser#browserclose) method was called.*/addListener(event: 'close', listener: () => void): this;/*** The event is emitted when a new Page is created in the BrowserContext. The page may still be loading. The event will- * also fire for popup pages. See also- * [page.on('popup')](https://github.com/microsoft/playwright/blob/master/docs/api.md#pageonpopup) to receive events about- * popups relevant to a specific page.+ * also fire for popup pages. See also [page.on('popup')](https://playwright.dev/docs/api/class-page#pageonpopup) to+ * receive events about popups relevant to a specific page.** The earliest moment that page is available is when it has navigated to the initial url. For example, when opening a* popup with `window.open('http://example.com')`, this event will fire when the network request to "http://example.com" is@@ -7641,8 +7539,8 @@ export interface ChromiumBrowserContext extends BrowserContext {* ```** > NOTE: Use- * [page.waitForLoadState(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagewaitforloadstate) to wait- * until the page gets to a particular state (you should not need it in most cases).+ * [page.waitForLoadState([state, options])](https://playwright.dev/docs/api/class-page#pagewaitforloadstatestate-options)+ * to wait until the page gets to a particular state (you should not need it in most cases).*/addListener(event: 'page', listener: (page: Page) => void): this;@@ -7662,16 +7560,14 @@ export interface ChromiumBrowserContext extends BrowserContext {* Emitted when Browser context gets closed. This might happen because of one of the following:* - Browser context is closed.* - Browser application is closed or crashed.- * - The [browser.close(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browserclose) method was- * called.+ * - The [browser.close()](https://playwright.dev/docs/api/class-browser#browserclose) method was called.*/removeListener(event: 'close', listener: () => void): this;/*** The event is emitted when a new Page is created in the BrowserContext. The page may still be loading. The event will- * also fire for popup pages. See also- * [page.on('popup')](https://github.com/microsoft/playwright/blob/master/docs/api.md#pageonpopup) to receive events about- * popups relevant to a specific page.+ * also fire for popup pages. See also [page.on('popup')](https://playwright.dev/docs/api/class-page#pageonpopup) to+ * receive events about popups relevant to a specific page.** The earliest moment that page is available is when it has navigated to the initial url. For example, when opening a* popup with `window.open('http://example.com')`, this event will fire when the network request to "http://example.com" is@@ -7686,8 +7582,8 @@ export interface ChromiumBrowserContext extends BrowserContext {* ```** > NOTE: Use- * [page.waitForLoadState(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagewaitforloadstate) to wait- * until the page gets to a particular state (you should not need it in most cases).+ * [page.waitForLoadState([state, options])](https://playwright.dev/docs/api/class-page#pagewaitforloadstatestate-options)+ * to wait until the page gets to a particular state (you should not need it in most cases).*/removeListener(event: 'page', listener: (page: Page) => void): this;@@ -7707,16 +7603,14 @@ export interface ChromiumBrowserContext extends BrowserContext {* Emitted when Browser context gets closed. This might happen because of one of the following:* - Browser context is closed.* - Browser application is closed or crashed.- * - The [browser.close(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browserclose) method was- * called.+ * - The [browser.close()](https://playwright.dev/docs/api/class-browser#browserclose) method was called.*/off(event: 'close', listener: () => void): this;/*** The event is emitted when a new Page is created in the BrowserContext. The page may still be loading. The event will- * also fire for popup pages. See also- * [page.on('popup')](https://github.com/microsoft/playwright/blob/master/docs/api.md#pageonpopup) to receive events about- * popups relevant to a specific page.+ * also fire for popup pages. See also [page.on('popup')](https://playwright.dev/docs/api/class-page#pageonpopup) to+ * receive events about popups relevant to a specific page.** The earliest moment that page is available is when it has navigated to the initial url. For example, when opening a* popup with `window.open('http://example.com')`, this event will fire when the network request to "http://example.com" is@@ -7731,8 +7625,8 @@ export interface ChromiumBrowserContext extends BrowserContext {* ```** > NOTE: Use- * [page.waitForLoadState(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagewaitforloadstate) to wait- * until the page gets to a particular state (you should not need it in most cases).+ * [page.waitForLoadState([state, options])](https://playwright.dev/docs/api/class-page#pagewaitforloadstatestate-options)+ * to wait until the page gets to a particular state (you should not need it in most cases).*/off(event: 'page', listener: (page: Page) => void): this;@@ -7768,16 +7662,14 @@ export interface ChromiumBrowserContext extends BrowserContext {* Emitted when Browser context gets closed. This might happen because of one of the following:* - Browser context is closed.* - Browser application is closed or crashed.- * - The [browser.close(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browserclose) method was- * called.+ * - The [browser.close()](https://playwright.dev/docs/api/class-browser#browserclose) method was called.*/waitForEvent(event: 'close', optionsOrPredicate?: { predicate?: () => boolean, timeout?: number } | (() => boolean)): Promise<void>;/*** The event is emitted when a new Page is created in the BrowserContext. The page may still be loading. The event will- * also fire for popup pages. See also- * [page.on('popup')](https://github.com/microsoft/playwright/blob/master/docs/api.md#pageonpopup) to receive events about- * popups relevant to a specific page.+ * also fire for popup pages. See also [page.on('popup')](https://playwright.dev/docs/api/class-page#pageonpopup) to+ * receive events about popups relevant to a specific page.** The earliest moment that page is available is when it has navigated to the initial url. For example, when opening a* popup with `window.open('http://example.com')`, this event will fire when the network request to "http://example.com" is@@ -7792,8 +7684,8 @@ export interface ChromiumBrowserContext extends BrowserContext {* ```** > NOTE: Use- * [page.waitForLoadState(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagewaitforloadstate) to wait- * until the page gets to a particular state (you should not need it in most cases).+ * [page.waitForLoadState([state, options])](https://playwright.dev/docs/api/class-page#pagewaitforloadstatestate-options)+ * to wait until the page gets to a particular state (you should not need it in most cases).*/waitForEvent(event: 'page', optionsOrPredicate?: { predicate?: (page: Page) => boolean, timeout?: number } | ((page: Page) => boolean)): Promise<Page>;@@ -7931,7 +7823,7 @@ export interface ChromiumCoverage {/*** [ConsoleMessage] objects are dispatched by page via the- * [page.on('console')](https://github.com/microsoft/playwright/blob/master/docs/api.md#pageonconsole) event.+ * [page.on('console')](https://playwright.dev/docs/api/class-page#pageonconsole) event.*/export interface ConsoleMessage {args(): Array<JSHandle>;@@ -7965,7 +7857,7 @@ export interface ConsoleMessage {/*** [Dialog] objects are dispatched by page via the- * [page.on('dialog')](https://github.com/microsoft/playwright/blob/master/docs/api.md#pageondialog) event.+ * [page.on('dialog')](https://playwright.dev/docs/api/class-page#pageondialog) event.** An example of using `Dialog` class:*@@ -8015,7 +7907,7 @@ export interface Dialog {/*** [Download] objects are dispatched by page via the- * [page.on('download')](https://github.com/microsoft/playwright/blob/master/docs/api.md#pageondownload) event.+ * [page.on('download')](https://playwright.dev/docs/api/class-page#pageondownload) event.** All the downloaded files belonging to the browser context are deleted when the browser context is closed. All downloaded* files are deleted when the browser closes.@@ -8078,7 +7970,7 @@ export interface Download {/*** [FileChooser] objects are dispatched by the page in the- * [page.on('filechooser')](https://github.com/microsoft/playwright/blob/master/docs/api.md#pageonfilechooser) event.+ * [page.on('filechooser')](https://playwright.dev/docs/api/class-page#pageonfilechooser) event.** ```js* const [fileChooser] = await Promise.all([@@ -8152,9 +8044,8 @@ export interface FileChooser {/*** Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by* using the- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;}): Promise<void>;@@ -8171,14 +8062,13 @@ export interface FirefoxBrowser extends Browser {/*** Keyboard provides an api for managing a virtual keyboard. The high level api is- * [keyboard.type(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#keyboardtype), which takes raw- * characters and generates proper keydown, keypress/input, and keyup events on your page.+ * [keyboard.type(text[, options])](https://playwright.dev/docs/api/class-keyboard#keyboardtypetext-options), which takes+ * raw characters and generates proper keydown, keypress/input, and keyup events on your page.*- * For finer control, you can use- * [keyboard.down(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#keyboarddown),- * [keyboard.up(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#keyboardup), and- * [keyboard.insertText(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#keyboardinserttext) to manually- * fire events as if they were generated from a real keyboard.+ * For finer control, you can use [keyboard.down(key)](https://playwright.dev/docs/api/class-keyboard#keyboarddownkey),+ * [keyboard.up(key)](https://playwright.dev/docs/api/class-keyboard#keyboardupkey), and+ * [keyboard.insertText(text)](https://playwright.dev/docs/api/class-keyboard#keyboardinserttexttext) to manually fire+ * events as if they were generated from a real keyboard.** An example of holding down `Shift` in order to select and delete some text:*@@ -8233,12 +8123,12 @@ export interface Keyboard {** If `key` is a modifier key, `Shift`, `Meta`, `Control`, or `Alt`, subsequent key presses will be sent with that modifier* active. To release the modifier key, use- * [keyboard.up(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#keyboardup).+ * [keyboard.up(key)](https://playwright.dev/docs/api/class-keyboard#keyboardupkey).** After the key is pressed once, subsequent calls to- * [keyboard.down(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#keyboarddown) will have+ * [keyboard.down(key)](https://playwright.dev/docs/api/class-keyboard#keyboarddownkey) will have* [repeat](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/repeat) set to true. To release the key, use- * [keyboard.up(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#keyboardup).+ * [keyboard.up(key)](https://playwright.dev/docs/api/class-keyboard#keyboardupkey).** > NOTE: Modifier keys DO influence `keyboard.down`. Holding down `Shift` will type the text in upper case.* @param key Name of the key to press or a character to generate, such as `ArrowLeft` or `a`.@@ -8287,8 +8177,8 @@ export interface Keyboard {* await browser.close();* ```*- * Shortcut for [keyboard.down(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#keyboarddown) and- * [keyboard.up(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#keyboardup).+ * Shortcut for [keyboard.down(key)](https://playwright.dev/docs/api/class-keyboard#keyboarddownkey) and+ * [keyboard.up(key)](https://playwright.dev/docs/api/class-keyboard#keyboardupkey).* @param key Name of the key to press or a character to generate, such as `ArrowLeft` or `a`.* @param options*/@@ -8303,7 +8193,7 @@ export interface Keyboard {* Sends a `keydown`, `keypress`/`input`, and `keyup` event for each character in the text.** To press a special key, like `Control` or `ArrowDown`, use- * [keyboard.press(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#keyboardpress).+ * [keyboard.press(key[, options])](https://playwright.dev/docs/api/class-keyboard#keyboardpresskey-options).** ```js* await page.keyboard.type('Hello'); // Types instantly@@ -8373,7 +8263,7 @@ export interface Logger {* The Mouse class operates in main-frame CSS pixels relative to the top-left corner of the viewport.** Every `page` object has its own Mouse, accessible with- * [page.mouse](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagemouse).+ * [page.mouse](https://playwright.dev/docs/api/class-page#pagemouse).** ```js* // Using ‘page.mouse’ to trace a 100x100 square.@@ -8389,9 +8279,9 @@ export interface Logger {*/export interface Mouse {/**- * Shortcut for [mouse.move(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#mousemove),- * [mouse.down(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#mousedown),- * [mouse.up(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#mouseup).+ * Shortcut for [mouse.move(x, y[, options])](https://playwright.dev/docs/api/class-mouse#mousemovex-y-options),+ * [mouse.down([options])](https://playwright.dev/docs/api/class-mouse#mousedownoptions),+ * [mouse.up([options])](https://playwright.dev/docs/api/class-mouse#mouseupoptions).* @param x* @param y* @param options@@ -8414,11 +8304,11 @@ export interface Mouse {}): Promise<void>;/**- * Shortcut for [mouse.move(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#mousemove),- * [mouse.down(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#mousedown),- * [mouse.up(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#mouseup),- * [mouse.down(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#mousedown) and- * [mouse.up(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#mouseup).+ * Shortcut for [mouse.move(x, y[, options])](https://playwright.dev/docs/api/class-mouse#mousemovex-y-options),+ * [mouse.down([options])](https://playwright.dev/docs/api/class-mouse#mousedownoptions),+ * [mouse.up([options])](https://playwright.dev/docs/api/class-mouse#mouseupoptions),+ * [mouse.down([options])](https://playwright.dev/docs/api/class-mouse#mousedownoptions) and+ * [mouse.up([options])](https://playwright.dev/docs/api/class-mouse#mouseupoptions).* @param x* @param y* @param options@@ -8483,16 +8373,15 @@ export interface Mouse {/*** Whenever the page sends a request for a network resource the following sequence of events are emitted by [Page]:- * - [page.on('request')](https://github.com/microsoft/playwright/blob/master/docs/api.md#pageonrequest) emitted when the- * request is issued by the page.- * - [page.on('response')](https://github.com/microsoft/playwright/blob/master/docs/api.md#pageonresponse) emitted- * when/if the response status and headers are received for the request.- * - [page.on('requestfinished')](https://github.com/microsoft/playwright/blob/master/docs/api.md#pageonrequestfinished)- * emitted when the response body is downloaded and the request is complete.+ * - [page.on('request')](https://playwright.dev/docs/api/class-page#pageonrequest) emitted when the request is issued by+ * the page.+ * - [page.on('response')](https://playwright.dev/docs/api/class-page#pageonresponse) emitted when/if the response status+ * and headers are received for the request.+ * - [page.on('requestfinished')](https://playwright.dev/docs/api/class-page#pageonrequestfinished) emitted when the+ * response body is downloaded and the request is complete.** If request fails at some point, then instead of `'requestfinished'` event (and possibly instead of 'response' event),- * the [page.on('requestfailed')](https://github.com/microsoft/playwright/blob/master/docs/api.md#pageonrequestfailed)- * event is emitted.+ * the [page.on('requestfailed')](https://playwright.dev/docs/api/class-page#pageonrequestfailed) event is emitted.** > NOTE: HTTP Error responses, such as 404 or 503, are still successful responses from HTTP standpoint, so request will* complete with `'requestfinished'` event.@@ -8586,7 +8475,7 @@ export interface Request {* New request issued by the browser if the server responded with redirect.** This method is the opposite of- * [request.redirectedFrom(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#requestredirectedfrom):+ * [request.redirectedFrom()](https://playwright.dev/docs/api/class-request#requestredirectedfrom):** ```js* console.log(request.redirectedFrom().redirectedTo() === request); // true@@ -8746,9 +8635,9 @@ export interface Response {/*** Whenever a network route is set up with- * [page.route(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pageroute) or- * [browserContext.route(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextroute), the- * `Route` object allows to handle the route.+ * [page.route(url, handler)](https://playwright.dev/docs/api/class-page#pagerouteurl-handler) or+ * [browserContext.route(url, handler)](https://playwright.dev/docs/api/class-browsercontext#browsercontextrouteurl-handler),+ * the `Route` object allows to handle the route.*/export interface Route {/**@@ -8869,8 +8758,8 @@ export interface Route {}/**- * Selectors can be used to install custom selector engines. See- * [Working with selectors](https://github.com/microsoft/playwright/blob/master/docs/selectors.md#working-with-selectors) for more information.+ * Selectors can be used to install custom selector engines. See [Working with selectors](https://playwright.dev/docs/selectors) for more+ * information.*/export interface Selectors {/**@@ -9203,8 +9092,8 @@ export interface BrowserContextOptions {/*** Emulates `'prefers-colors-scheme'` media feature, supported values are `'light'`, `'dark'`, `'no-preference'`. See- * [page.emulateMedia(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pageemulatemedia) for more- * details. Defaults to '`light`'.+ * [page.emulateMedia(params)](https://playwright.dev/docs/api/class-page#pageemulatemediaparams) for more details.+ * Defaults to '`light`'.*/colorScheme?: "light"|"dark"|"no-preference";@@ -9264,7 +9153,7 @@ export interface BrowserContextOptions {/*** A list of permissions to grant to all pages in this context. See- * [browserContext.grantPermissions(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextgrantpermissions)+ * [browserContext.grantPermissions(permissions[, options])](https://playwright.dev/docs/api/class-browsercontext#browsercontextgrantpermissionspermissions-options)* for more details.*/permissions?: Array<string>;@@ -9300,8 +9189,8 @@ export interface BrowserContextOptions {/*** Enables [HAR](http://www.softwareishard.com/blog/har-12-spec) recording for all pages into `recordHar.path` file. If not* specified, the HAR is not recorded. Make sure to await- * [browserContext.close(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextclose) for the- * HAR to be saved.+ * [browserContext.close()](https://playwright.dev/docs/api/class-browsercontext#browsercontextclose) for the HAR to be+ * saved.*/recordHar?: {/**@@ -9317,8 +9206,7 @@ export interface BrowserContextOptions {/*** Enables video recording for all pages into `recordVideo.dir` directory. If not specified videos are not recorded. Make- * sure to await- * [browserContext.close(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextclose) for+ * sure to await [browserContext.close()](https://playwright.dev/docs/api/class-browsercontext#browsercontextclose) for* videos to be saved.*/recordVideo?: {@@ -9348,7 +9236,7 @@ export interface BrowserContextOptions {/*** Populates context with given storage state. This method can be used to initialize context with logged-in information* obtained via- * [browserContext.storageState(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextstoragestate).+ * [browserContext.storageState([options])](https://playwright.dev/docs/api/class-browsercontext#browsercontextstoragestateoptions).* Either a path to the file with saved storage, or an object with the following fields:*/storageState?: string|{@@ -9638,9 +9526,8 @@ interface ElementHandleWaitForSelectorOptions {/*** Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by* using the- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;}@@ -9681,9 +9568,8 @@ interface PageWaitForSelectorOptions {/*** Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by* using the- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout)- * or [page.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#pagesetdefaulttimeout)- * methods.+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout)+ * or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#pagesetdefaulttimeouttimeout) methods.*/timeout?: number;}@@ -9698,7 +9584,7 @@ interface PageWaitForFunctionOptions {/*** maximum time to wait for in milliseconds. Defaults to `30000` (30 seconds). Pass `0` to disable timeout. The default* value can be changed by using the- * [browserContext.setDefaultTimeout(…)](https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontextsetdefaulttimeout).+ * [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browsercontextsetdefaulttimeouttimeout).*/timeout?: number;}diff --git a/utils/generate_types/index.js b/utils/generate_types/index.jsindex 9d5a6e3bd6..0b07b0b7d2 100644--- a/utils/generate_types/index.js+++ b/utils/generate_types/index.js@@ -39,9 +39,9 @@ let hadChanges = false;documentation = parseApi(path.join(PROJECT_DIR, 'docs', 'src', 'api'));documentation.filterForLanguage('js');documentation.copyDocsFromSuperclasses([]);- const createMemberLink = (text) => {+ const createMemberLink = (clazz, text) => {const anchor = text.toLowerCase().split(',').map(c => c.replace(/[^a-z]/g, '')).join('-');- return `[${text}](https://github.com/microsoft/playwright/blob/master/docs/api.md#${anchor})`;+ return `[${text}](https://playwright.dev/docs/api/class-${clazz.name.toLowerCase()}#${anchor})`;};documentation.setLinkRenderer(item => {const { clazz, member, param, option } = item;@@ -52,11 +52,11 @@ let hadChanges = false;if (clazz)return `[${clazz.name}]`;if (member.kind === 'method')- return createMemberLink(`${member.clazz.varName}.${member.name}(…)`);+ return createMemberLink(member.clazz, `${member.clazz.varName}.${member.name}(${renderJSSignature(member.argsArray)})`);if (member.kind === 'event')- return createMemberLink(`${member.clazz.varName}.on('${member.name}')`);+ return createMemberLink(member.clazz, `${member.clazz.varName}.on('${member.name}')`);if (member.kind === 'property')- return createMemberLink(`${member.clazz.varName}.${member.name}`);+ return createMemberLink(member.clazz, `${member.clazz.varName}.${member.name}`);throw new Error('Unknown member kind ' + member.kind);});documentation.generateSourceCodeComments();@@ -283,10 +283,9 @@ function writeComment(comment, indent = '') {pushLine(line);}comment = out.join('\n');- comment = comment.replace(/\[`([^`]+)`\]\(#([^\)]+)\)/g, '[$1](https://github.com/microsoft/playwright/blob/master/docs/api.md#$2)');- comment = comment.replace(/\[([^\]]+)\]\(#([^\)]+)\)/g, '[$1](https://github.com/microsoft/playwright/blob/master/docs/api.md#$2)');- comment = comment.replace(/\[`([^`]+)`\]\(\.\/([^\)]+)\)/g, '[$1](https://github.com/microsoft/playwright/blob/master/docs/$2)');- comment = comment.replace(/\[([^\]]+)\]\(\.\/([^\)]+)\)/g, '[$1](https://github.com/microsoft/playwright/blob/master/docs/$2)');+ comment = comment.replace(/\[([^\]]+)\]\(\.\/([^\)]+)\)/g, (match, p1, p2) => {+ return `[${p1}](https://playwright.dev/docs/${p2.replace('.md', '')})`;+ });parts.push(indent + '/**');parts.push(...comment.split('\n').map(line => indent + ' * ' + line.replace(/\*\//g, '*\\/')));@@ -392,3 +391,30 @@ ${namedDevices}[key: string]: DeviceDescriptor;}`;}++/**+ * @param {Documentation.Member[]} args+ */+function renderJSSignature(args) {+ const tokens = [];+ let hasOptional = false;+ for (const arg of args) {+ const name = arg.name;+ const optional = !arg.required;+ if (tokens.length) {+ if (optional && !hasOptional)+ tokens.push(`[, ${name}`);+ else+ tokens.push(`, ${name}`);+ } else {+ if (optional && !hasOptional)+ tokens.push(`[${name}`);+ else+ tokens.push(`${name}`);+ }+ hasOptional = hasOptional || optional;+ }+ if (hasOptional)+ tokens.push(']');+ return tokens.join('');+}\ No newline at end of file