docs: update default timeouts in js to be zero and mention config (#21675)
Fixes #19018.
This commit is contained in:
parent
27048adebe
commit
69a94ed044
|
|
@ -1134,7 +1134,7 @@ When set to `minimal`, only record information necessary for routing from HAR. T
|
|||
* since: v1.32
|
||||
- `content` <[HarContentPolicy]<"omit"|"embed"|"attach">>
|
||||
|
||||
Optional setting to control resource content management. If `omit` is specified, content is not persisted. If `attach` is specified, resources are persisted as separate files or entries in the ZIP archive. If `embed` is specified, content is stored inline the HAR file
|
||||
Optional setting to control resource content management. If `omit` is specified, content is not persisted. If `attach` is specified, resources are persisted as separate files or entries in the ZIP archive. If `embed` is specified, content is stored inline the HAR file
|
||||
|
||||
## method: BrowserContext.serviceWorkers
|
||||
* since: v1.11
|
||||
|
|
@ -1379,9 +1379,8 @@ Event name, same one would pass into `browserContext.on(event)`.
|
|||
* since: v1.8
|
||||
* langs: js
|
||||
- `optionsOrPredicate` ?<[function]|[Object]>
|
||||
- `predicate` <[function]> receives the event data and resolves to truthy value when the waiting should resolve.
|
||||
- `timeout` ?<[float]> 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 [`method: BrowserContext.setDefaultTimeout`].
|
||||
- `predicate` <[function]> Receives the event data and resolves to truthy value when the waiting should resolve.
|
||||
- `timeout` ?<[float]> Maximum time to wait for in milliseconds. Defaults to `0` - no timeout. The default value can be changed via `actionTimeout` option in the config, or by using the [`method: BrowserContext.setDefaultTimeout`] method.
|
||||
|
||||
Either a predicate that receives an event or an options object. Optional.
|
||||
|
||||
|
|
|
|||
|
|
@ -183,6 +183,9 @@ When all steps combined have not finished during the specified [`option: timeout
|
|||
### option: ElementHandle.check.timeout = %%-input-timeout-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: ElementHandle.check.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: ElementHandle.check.trial = %%-input-trial-%%
|
||||
* since: v1.11
|
||||
|
||||
|
|
@ -224,6 +227,9 @@ When all steps combined have not finished during the specified [`option: timeout
|
|||
### option: ElementHandle.click.timeout = %%-input-timeout-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: ElementHandle.click.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: ElementHandle.click.trial = %%-input-trial-%%
|
||||
* since: v1.11
|
||||
|
||||
|
|
@ -275,6 +281,9 @@ When all steps combined have not finished during the specified [`option: timeout
|
|||
### option: ElementHandle.dblclick.timeout = %%-input-timeout-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: ElementHandle.dblclick.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: ElementHandle.dblclick.trial = %%-input-trial-%%
|
||||
* since: v1.11
|
||||
|
||||
|
|
@ -519,6 +528,9 @@ Value to set for the `<input>`, `<textarea>` or `[contenteditable]` element.
|
|||
### option: ElementHandle.fill.timeout = %%-input-timeout-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: ElementHandle.fill.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.8
|
||||
|
||||
## async method: ElementHandle.focus
|
||||
* since: v1.8
|
||||
|
||||
|
|
@ -562,6 +574,9 @@ When all steps combined have not finished during the specified [`option: timeout
|
|||
### option: ElementHandle.hover.timeout = %%-input-timeout-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: ElementHandle.hover.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: ElementHandle.hover.trial = %%-input-trial-%%
|
||||
* since: v1.11
|
||||
|
||||
|
|
@ -591,6 +606,9 @@ Throws for non-input elements. However, if the element is inside the `<label>` e
|
|||
### option: ElementHandle.inputValue.timeout = %%-input-timeout-%%
|
||||
* since: v1.13
|
||||
|
||||
### option: ElementHandle.inputValue.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.13
|
||||
|
||||
## async method: ElementHandle.isChecked
|
||||
* since: v1.8
|
||||
- returns: <[boolean]>
|
||||
|
|
@ -674,6 +692,9 @@ Time to wait between `keydown` and `keyup` in milliseconds. Defaults to 0.
|
|||
### option: ElementHandle.press.timeout = %%-input-timeout-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: ElementHandle.press.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.8
|
||||
|
||||
## async method: ElementHandle.querySelector
|
||||
* since: v1.9
|
||||
* langs:
|
||||
|
|
@ -714,6 +735,12 @@ Returns the buffer with the captured screenshot.
|
|||
### option: ElementHandle.screenshot.-inline- = %%-screenshot-options-common-list-v1.8-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: ElementHandle.screenshot.timeout = %%-input-timeout-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: ElementHandle.screenshot.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.8
|
||||
|
||||
## async method: ElementHandle.scrollIntoViewIfNeeded
|
||||
* since: v1.8
|
||||
|
||||
|
|
@ -727,6 +754,9 @@ Throws when `elementHandle` does not point to an element
|
|||
### option: ElementHandle.scrollIntoViewIfNeeded.timeout = %%-input-timeout-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: ElementHandle.scrollIntoViewIfNeeded.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.8
|
||||
|
||||
## async method: ElementHandle.selectOption
|
||||
* since: v1.8
|
||||
- returns: <[Array]<[string]>>
|
||||
|
|
@ -805,6 +835,9 @@ await handle.SelectOptionAsync(new[] {
|
|||
### option: ElementHandle.selectOption.timeout = %%-input-timeout-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: ElementHandle.selectOption.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.8
|
||||
|
||||
### param: ElementHandle.selectOption.element = %%-python-select-options-element-%%
|
||||
* since: v1.8
|
||||
|
||||
|
|
@ -831,6 +864,9 @@ If the element is inside the `<label>` element that has an associated [control](
|
|||
### option: ElementHandle.selectText.timeout = %%-input-timeout-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: ElementHandle.selectText.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.8
|
||||
|
||||
## async method: ElementHandle.setChecked
|
||||
* since: v1.15
|
||||
|
||||
|
|
@ -862,6 +898,9 @@ When all steps combined have not finished during the specified [`option: timeout
|
|||
### option: ElementHandle.setChecked.timeout = %%-input-timeout-%%
|
||||
* since: v1.15
|
||||
|
||||
### option: ElementHandle.setChecked.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.15
|
||||
|
||||
### option: ElementHandle.setChecked.trial = %%-input-trial-%%
|
||||
* since: v1.15
|
||||
|
||||
|
|
@ -883,6 +922,9 @@ This method expects [ElementHandle] to point to an
|
|||
### option: ElementHandle.setInputFiles.timeout = %%-input-timeout-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: ElementHandle.setInputFiles.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.8
|
||||
|
||||
## async method: ElementHandle.tap
|
||||
* since: v1.8
|
||||
|
||||
|
|
@ -916,6 +958,9 @@ When all steps combined have not finished during the specified [`option: timeout
|
|||
### option: ElementHandle.tap.timeout = %%-input-timeout-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: ElementHandle.tap.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: ElementHandle.tap.trial = %%-input-trial-%%
|
||||
* since: v1.11
|
||||
|
||||
|
|
@ -1009,6 +1054,9 @@ Time to wait between key presses in milliseconds. Defaults to 0.
|
|||
### option: ElementHandle.type.timeout = %%-input-timeout-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: ElementHandle.type.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.8
|
||||
|
||||
## async method: ElementHandle.uncheck
|
||||
* since: v1.8
|
||||
|
||||
|
|
@ -1038,6 +1086,9 @@ When all steps combined have not finished during the specified [`option: timeout
|
|||
### option: ElementHandle.uncheck.timeout = %%-input-timeout-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: ElementHandle.uncheck.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: ElementHandle.uncheck.trial = %%-input-trial-%%
|
||||
* since: v1.11
|
||||
|
||||
|
|
@ -1068,6 +1119,9 @@ A state to wait for, see below for more details.
|
|||
### option: ElementHandle.waitForElementState.timeout = %%-input-timeout-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: ElementHandle.waitForElementState.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.8
|
||||
|
||||
## async method: ElementHandle.waitForSelector
|
||||
* since: v1.8
|
||||
- returns: <[null]|[ElementHandle]>
|
||||
|
|
@ -1131,5 +1185,8 @@ This method does not work across navigations, use [`method: Page.waitForSelector
|
|||
### option: ElementHandle.waitForSelector.timeout = %%-input-timeout-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: ElementHandle.waitForSelector.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: ElementHandle.waitForSelector.strict = %%-input-strict-%%
|
||||
* since: v1.15
|
||||
|
|
|
|||
|
|
@ -70,3 +70,6 @@ they are resolved relative to the current working directory. For empty array, cl
|
|||
|
||||
### option: FileChooser.setFiles.timeout = %%-input-timeout-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: FileChooser.setFiles.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.8
|
||||
|
|
|
|||
|
|
@ -223,6 +223,9 @@ When all steps combined have not finished during the specified [`option: timeout
|
|||
### option: Frame.check.timeout = %%-input-timeout-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Frame.check.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Frame.check.trial = %%-input-trial-%%
|
||||
* since: v1.11
|
||||
|
||||
|
|
@ -276,6 +279,9 @@ When all steps combined have not finished during the specified [`option: timeout
|
|||
### option: Frame.click.timeout = %%-input-timeout-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Frame.click.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Frame.click.trial = %%-input-trial-%%
|
||||
* since: v1.11
|
||||
|
||||
|
|
@ -335,6 +341,9 @@ When all steps combined have not finished during the specified [`option: timeout
|
|||
### option: Frame.dblclick.timeout = %%-input-timeout-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Frame.dblclick.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Frame.dblclick.trial = %%-input-trial-%%
|
||||
* since: v1.11
|
||||
|
||||
|
|
@ -437,6 +446,9 @@ Optional event-specific initialization properties.
|
|||
### option: Frame.dispatchEvent.timeout = %%-input-timeout-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Frame.dispatchEvent.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.8
|
||||
|
||||
## async method: Frame.dragAndDrop
|
||||
* since: v1.13
|
||||
|
||||
|
|
@ -458,6 +470,9 @@ Optional event-specific initialization properties.
|
|||
### option: Frame.dragAndDrop.timeout = %%-input-timeout-%%
|
||||
* since: v1.13
|
||||
|
||||
### option: Frame.dragAndDrop.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.13
|
||||
|
||||
### option: Frame.dragAndDrop.trial = %%-input-trial-%%
|
||||
* since: v1.13
|
||||
|
||||
|
|
@ -844,6 +859,9 @@ Value to fill for the `<input>`, `<textarea>` or `[contenteditable]` element.
|
|||
### option: Frame.fill.timeout = %%-input-timeout-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Frame.fill.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.8
|
||||
|
||||
## async method: Frame.focus
|
||||
* since: v1.8
|
||||
* discouraged: Use locator-based [`method: Locator.focus`] instead. Read more about [locators](../locators.md).
|
||||
|
|
@ -860,6 +878,9 @@ This method fetches an element with [`param: selector`] and focuses it. If there
|
|||
### option: Frame.focus.timeout = %%-input-timeout-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Frame.focus.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.8
|
||||
|
||||
## async method: Frame.frameElement
|
||||
* since: v1.8
|
||||
- returns: <[ElementHandle]>
|
||||
|
|
@ -964,6 +985,9 @@ Attribute name to get the value for.
|
|||
### option: Frame.getAttribute.timeout = %%-input-timeout-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Frame.getAttribute.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.8
|
||||
|
||||
## method: Frame.getByAltText
|
||||
* since: v1.27
|
||||
- returns: <[Locator]>
|
||||
|
|
@ -1078,6 +1102,9 @@ URL to navigate frame to. The url should include scheme, e.g. `https://`.
|
|||
### option: Frame.goto.timeout = %%-navigation-timeout-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Frame.goto.timeout = %%-navigation-timeout-js-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Frame.goto.referer
|
||||
* since: v1.8
|
||||
- `referer` <[string]>
|
||||
|
|
@ -1119,6 +1146,9 @@ When all steps combined have not finished during the specified [`option: timeout
|
|||
### option: Frame.hover.timeout = %%-input-timeout-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Frame.hover.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Frame.hover.trial = %%-input-trial-%%
|
||||
* since: v1.11
|
||||
|
||||
|
|
@ -1141,6 +1171,9 @@ Returns `element.innerHTML`.
|
|||
### option: Frame.innerHTML.timeout = %%-input-timeout-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Frame.innerHTML.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.8
|
||||
|
||||
## async method: Frame.innerText
|
||||
* since: v1.8
|
||||
* discouraged: Use locator-based [`method: Locator.innerText`] instead. Read more about [locators](../locators.md).
|
||||
|
|
@ -1157,6 +1190,9 @@ Returns `element.innerText`.
|
|||
### option: Frame.innerText.timeout = %%-input-timeout-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Frame.innerText.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.8
|
||||
|
||||
## async method: Frame.inputValue
|
||||
* since: v1.13
|
||||
* discouraged: Use locator-based [`method: Locator.inputValue`] instead. Read more about [locators](../locators.md).
|
||||
|
|
@ -1175,6 +1211,9 @@ Throws for non-input elements. However, if the element is inside the `<label>` e
|
|||
### option: Frame.inputValue.timeout = %%-input-timeout-%%
|
||||
* since: v1.13
|
||||
|
||||
### option: Frame.inputValue.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.13
|
||||
|
||||
## async method: Frame.isChecked
|
||||
* since: v1.8
|
||||
* discouraged: Use locator-based [`method: Locator.isChecked`] instead. Read more about [locators](../locators.md).
|
||||
|
|
@ -1191,6 +1230,9 @@ Returns whether the element is checked. Throws if the element is not a checkbox
|
|||
### option: Frame.isChecked.timeout = %%-input-timeout-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Frame.isChecked.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.8
|
||||
|
||||
## method: Frame.isDetached
|
||||
* since: v1.8
|
||||
- returns: <[boolean]>
|
||||
|
|
@ -1213,6 +1255,9 @@ Returns whether the element is disabled, the opposite of [enabled](../actionabil
|
|||
### option: Frame.isDisabled.timeout = %%-input-timeout-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Frame.isDisabled.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.8
|
||||
|
||||
## async method: Frame.isEditable
|
||||
* since: v1.8
|
||||
* discouraged: Use locator-based [`method: Locator.isEditable`] instead. Read more about [locators](../locators.md).
|
||||
|
|
@ -1229,6 +1274,9 @@ Returns whether the element is [editable](../actionability.md#editable).
|
|||
### option: Frame.isEditable.timeout = %%-input-timeout-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Frame.isEditable.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.8
|
||||
|
||||
## async method: Frame.isEnabled
|
||||
* since: v1.8
|
||||
- returns: <[boolean]>
|
||||
|
|
@ -1244,6 +1292,9 @@ Returns whether the element is [enabled](../actionability.md#enabled).
|
|||
### option: Frame.isEnabled.timeout = %%-input-timeout-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Frame.isEnabled.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.8
|
||||
|
||||
## async method: Frame.isHidden
|
||||
* since: v1.8
|
||||
* discouraged: Use locator-based [`method: Locator.isHidden`] instead. Read more about [locators](../locators.md).
|
||||
|
|
@ -1364,6 +1415,9 @@ Time to wait between `keydown` and `keyup` in milliseconds. Defaults to 0.
|
|||
### option: Frame.press.timeout = %%-input-timeout-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Frame.press.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.8
|
||||
|
||||
## async method: Frame.querySelector
|
||||
* since: v1.9
|
||||
* discouraged: Use locator-based [`method: Frame.locator`] instead. Read more about [locators](../locators.md).
|
||||
|
|
@ -1487,6 +1541,9 @@ await frame.SelectOptionAsync("select#colors", new[] { "red", "green", "blue" })
|
|||
### option: Frame.selectOption.timeout = %%-input-timeout-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Frame.selectOption.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.8
|
||||
|
||||
### param: Frame.selectOption.element = %%-python-select-options-element-%%
|
||||
* since: v1.8
|
||||
|
||||
|
|
@ -1539,6 +1596,9 @@ When all steps combined have not finished during the specified [`option: timeout
|
|||
### option: Frame.setChecked.timeout = %%-input-timeout-%%
|
||||
* since: v1.15
|
||||
|
||||
### option: Frame.setChecked.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.15
|
||||
|
||||
### option: Frame.setChecked.trial = %%-input-trial-%%
|
||||
* since: v1.15
|
||||
|
||||
|
|
@ -1554,6 +1614,9 @@ HTML markup to assign to the page.
|
|||
### option: Frame.setContent.timeout = %%-navigation-timeout-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Frame.setContent.timeout = %%-navigation-timeout-js-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Frame.setContent.waitUntil = %%-navigation-wait-until-%%
|
||||
* since: v1.8
|
||||
|
||||
|
|
@ -1582,6 +1645,9 @@ This method expects [`param: selector`] to point to an
|
|||
### option: Frame.setInputFiles.timeout = %%-input-timeout-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Frame.setInputFiles.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.8
|
||||
|
||||
## async method: Frame.tap
|
||||
* since: v1.8
|
||||
* discouraged: Use locator-based [`method: Locator.tap`] instead. Read more about [locators](../locators.md).
|
||||
|
|
@ -1623,6 +1689,9 @@ When all steps combined have not finished during the specified [`option: timeout
|
|||
### option: Frame.tap.timeout = %%-input-timeout-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Frame.tap.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Frame.tap.trial = %%-input-trial-%%
|
||||
* since: v1.11
|
||||
|
||||
|
|
@ -1642,6 +1711,9 @@ Returns `element.textContent`.
|
|||
### option: Frame.textContent.timeout = %%-input-timeout-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Frame.textContent.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.8
|
||||
|
||||
## async method: Frame.title
|
||||
* since: v1.8
|
||||
- returns: <[string]>
|
||||
|
|
@ -1710,6 +1782,9 @@ Time to wait between key presses in milliseconds. Defaults to 0.
|
|||
### option: Frame.type.timeout = %%-input-timeout-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Frame.type.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.8
|
||||
|
||||
## async method: Frame.uncheck
|
||||
* since: v1.8
|
||||
* discouraged: Use locator-based [`method: Locator.uncheck`] instead. Read more about [locators](../locators.md).
|
||||
|
|
@ -1747,6 +1822,9 @@ When all steps combined have not finished during the specified [`option: timeout
|
|||
### option: Frame.uncheck.timeout = %%-input-timeout-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Frame.uncheck.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Frame.uncheck.trial = %%-input-trial-%%
|
||||
* since: v1.11
|
||||
|
||||
|
|
@ -1891,7 +1969,10 @@ Optional argument to pass to [`param: expression`].
|
|||
### option: Frame.waitForFunction.polling = %%-csharp-java-wait-for-function-polling-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Frame.waitForFunction.timeout = %%-wait-for-timeout-%%
|
||||
### option: Frame.waitForFunction.timeout = %%-wait-for-function-timeout-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Frame.waitForFunction.timeout = %%-wait-for-function-timeout-js-%%
|
||||
* since: v1.8
|
||||
|
||||
## async method: Frame.waitForLoadState
|
||||
|
|
@ -1935,6 +2016,9 @@ await frame.WaitForLoadStateAsync(); // Defaults to LoadState.Load
|
|||
### option: Frame.waitForLoadState.timeout = %%-navigation-timeout-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Frame.waitForLoadState.timeout = %%-navigation-timeout-js-%%
|
||||
* since: v1.8
|
||||
|
||||
## async method: Frame.waitForNavigation
|
||||
* since: v1.8
|
||||
* deprecated: This method is inherently racy, please use [`method: Frame.waitForURL`] instead.
|
||||
|
|
@ -2012,6 +2096,9 @@ a navigation.
|
|||
### option: Frame.waitForNavigation.timeout = %%-navigation-timeout-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Frame.waitForNavigation.timeout = %%-navigation-timeout-js-%%
|
||||
* since: v1.8
|
||||
|
||||
### param: Frame.waitForNavigation.callback = %%-java-wait-for-event-callback-%%
|
||||
* since: v1.9
|
||||
|
||||
|
|
@ -2143,6 +2230,9 @@ class FrameExamples
|
|||
### option: Frame.waitForSelector.timeout = %%-input-timeout-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Frame.waitForSelector.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.8
|
||||
|
||||
## async method: Frame.waitForTimeout
|
||||
* since: v1.8
|
||||
|
||||
|
|
@ -2195,5 +2285,8 @@ await frame.WaitForURLAsync("**/target.html");
|
|||
### option: Frame.waitForURL.timeout = %%-navigation-timeout-%%
|
||||
* since: v1.11
|
||||
|
||||
### option: Frame.waitForURL.timeout = %%-navigation-timeout-js-%%
|
||||
* since: v1.11
|
||||
|
||||
### option: Frame.waitForURL.waitUntil = %%-navigation-wait-until-%%
|
||||
* since: v1.11
|
||||
|
|
|
|||
|
|
@ -106,6 +106,9 @@ Calls [blur](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/blur)
|
|||
### option: Locator.blur.timeout = %%-input-timeout-%%
|
||||
* since: v1.28
|
||||
|
||||
### option: Locator.blur.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.28
|
||||
|
||||
## async method: Locator.boundingBox
|
||||
* since: v1.14
|
||||
- returns: <[null]|[Object]>
|
||||
|
|
@ -159,6 +162,9 @@ await page.Mouse.ClickAsync(box.X + box.Width / 2, box.Y + box.Height / 2);
|
|||
### option: Locator.boundingBox.timeout = %%-input-timeout-%%
|
||||
* since: v1.14
|
||||
|
||||
### option: Locator.boundingBox.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.14
|
||||
|
||||
## async method: Locator.check
|
||||
* since: v1.14
|
||||
|
||||
|
|
@ -214,6 +220,9 @@ await page.GetByRole(AriaRole.Checkbox).CheckAsync();
|
|||
### option: Locator.check.timeout = %%-input-timeout-%%
|
||||
* since: v1.14
|
||||
|
||||
### option: Locator.check.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.14
|
||||
|
||||
### option: Locator.check.trial = %%-input-trial-%%
|
||||
* since: v1.14
|
||||
|
||||
|
|
@ -261,6 +270,9 @@ await page.GetByRole(AriaRole.Textbox).ClearAsync();
|
|||
### option: Locator.clear.timeout = %%-input-timeout-%%
|
||||
* since: v1.28
|
||||
|
||||
### option: Locator.clear.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.28
|
||||
|
||||
## async method: Locator.click
|
||||
* since: v1.14
|
||||
|
||||
|
|
@ -366,6 +378,9 @@ await page.Locator("canvas").ClickAsync(new() {
|
|||
### option: Locator.click.timeout = %%-input-timeout-%%
|
||||
* since: v1.14
|
||||
|
||||
### option: Locator.click.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.14
|
||||
|
||||
### option: Locator.click.trial = %%-input-trial-%%
|
||||
* since: v1.14
|
||||
|
||||
|
|
@ -444,6 +459,9 @@ When all steps combined have not finished during the specified [`option: timeout
|
|||
### option: Locator.dblclick.timeout = %%-input-timeout-%%
|
||||
* since: v1.14
|
||||
|
||||
### option: Locator.dblclick.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.14
|
||||
|
||||
### option: Locator.dblclick.trial = %%-input-trial-%%
|
||||
* since: v1.14
|
||||
|
||||
|
|
@ -545,6 +563,9 @@ Optional event-specific initialization properties.
|
|||
### option: Locator.dispatchEvent.timeout = %%-input-timeout-%%
|
||||
* since: v1.14
|
||||
|
||||
### option: Locator.dispatchEvent.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.14
|
||||
|
||||
## async method: Locator.dragTo
|
||||
* since: v1.18
|
||||
|
||||
|
|
@ -634,6 +655,9 @@ Locator of the element to drag to.
|
|||
### option: Locator.dragTo.timeout = %%-input-timeout-%%
|
||||
* since: v1.18
|
||||
|
||||
### option: Locator.dragTo.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.18
|
||||
|
||||
### option: Locator.dragTo.trial = %%-input-trial-%%
|
||||
* since: v1.18
|
||||
|
||||
|
|
@ -653,6 +677,9 @@ Resolves given locator to the first matching DOM element. If there are no matchi
|
|||
### option: Locator.elementHandle.timeout = %%-input-timeout-%%
|
||||
* since: v1.14
|
||||
|
||||
### option: Locator.elementHandle.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.14
|
||||
|
||||
## async method: Locator.elementHandles
|
||||
* since: v1.14
|
||||
* discouraged: Always prefer using [Locator]s and web assertions over [ElementHandle]s because latter are inherently racy.
|
||||
|
|
@ -716,6 +743,9 @@ Optional argument to pass to [`param: expression`].
|
|||
### option: Locator.evaluate.timeout = %%-input-timeout-%%
|
||||
* since: v1.14
|
||||
|
||||
### option: Locator.evaluate.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.14
|
||||
|
||||
## async method: Locator.evaluateAll
|
||||
* since: v1.14
|
||||
- returns: <[Serializable]>
|
||||
|
|
@ -802,6 +832,9 @@ Optional argument to pass to [`param: expression`].
|
|||
### option: Locator.evaluateHandle.timeout = %%-input-timeout-%%
|
||||
* since: v1.14
|
||||
|
||||
### option: Locator.evaluateHandle.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.14
|
||||
|
||||
## async method: Locator.fill
|
||||
* since: v1.14
|
||||
|
||||
|
|
@ -852,6 +885,9 @@ Value to set for the `<input>`, `<textarea>` or `[contenteditable]` element.
|
|||
### option: Locator.fill.timeout = %%-input-timeout-%%
|
||||
* since: v1.14
|
||||
|
||||
### option: Locator.fill.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.14
|
||||
|
||||
## method: Locator.filter
|
||||
* since: v1.22
|
||||
- returns: <[Locator]>
|
||||
|
|
@ -927,6 +963,9 @@ Calls [focus](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus
|
|||
### option: Locator.focus.timeout = %%-input-timeout-%%
|
||||
* since: v1.14
|
||||
|
||||
### option: Locator.focus.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.14
|
||||
|
||||
## method: Locator.frameLocator
|
||||
* since: v1.17
|
||||
- returns: <[FrameLocator]>
|
||||
|
|
@ -979,6 +1018,9 @@ Attribute name to get the value for.
|
|||
### option: Locator.getAttribute.timeout = %%-input-timeout-%%
|
||||
* since: v1.14
|
||||
|
||||
### option: Locator.getAttribute.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.14
|
||||
|
||||
## method: Locator.getByAltText
|
||||
* since: v1.27
|
||||
- returns: <[Locator]>
|
||||
|
|
@ -1108,6 +1150,9 @@ When all steps combined have not finished during the specified [`option: timeout
|
|||
### option: Locator.hover.timeout = %%-input-timeout-%%
|
||||
* since: v1.14
|
||||
|
||||
### option: Locator.hover.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.14
|
||||
|
||||
### option: Locator.hover.trial = %%-input-trial-%%
|
||||
* since: v1.14
|
||||
|
||||
|
|
@ -1123,6 +1168,9 @@ Returns the [`element.innerHTML`](https://developer.mozilla.org/en-US/docs/Web/A
|
|||
### option: Locator.innerHTML.timeout = %%-input-timeout-%%
|
||||
* since: v1.14
|
||||
|
||||
### option: Locator.innerHTML.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.14
|
||||
|
||||
## async method: Locator.innerText
|
||||
* since: v1.14
|
||||
- returns: <[string]>
|
||||
|
|
@ -1132,6 +1180,9 @@ Returns the [`element.innerText`](https://developer.mozilla.org/en-US/docs/Web/A
|
|||
### option: Locator.innerText.timeout = %%-input-timeout-%%
|
||||
* since: v1.14
|
||||
|
||||
### option: Locator.innerText.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.14
|
||||
|
||||
## async method: Locator.inputValue
|
||||
* since: v1.14
|
||||
- returns: <[string]>
|
||||
|
|
@ -1167,6 +1218,9 @@ Throws elements that are not an input, textarea or a select. However, if the ele
|
|||
### option: Locator.inputValue.timeout = %%-input-timeout-%%
|
||||
* since: v1.14
|
||||
|
||||
### option: Locator.inputValue.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.14
|
||||
|
||||
## async method: Locator.isChecked
|
||||
* since: v1.14
|
||||
- returns: <[boolean]>
|
||||
|
|
@ -1198,6 +1252,9 @@ Boolean checked = await page.GetByRole(AriaRole.Checkbox).IsCheckedAsync();
|
|||
### option: Locator.isChecked.timeout = %%-input-timeout-%%
|
||||
* since: v1.14
|
||||
|
||||
### option: Locator.isChecked.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.14
|
||||
|
||||
## async method: Locator.isDisabled
|
||||
* since: v1.14
|
||||
- returns: <[boolean]>
|
||||
|
|
@ -1229,6 +1286,9 @@ Boolean disabled = await page.GetByRole(AriaRole.Button).IsDisabledAsync();
|
|||
### option: Locator.isDisabled.timeout = %%-input-timeout-%%
|
||||
* since: v1.14
|
||||
|
||||
### option: Locator.isDisabled.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.14
|
||||
|
||||
## async method: Locator.isEditable
|
||||
* since: v1.14
|
||||
- returns: <[boolean]>
|
||||
|
|
@ -1260,6 +1320,9 @@ Boolean editable = await page.GetByRole(AriaRole.Textbox).IsEditableAsync();
|
|||
### option: Locator.isEditable.timeout = %%-input-timeout-%%
|
||||
* since: v1.14
|
||||
|
||||
### option: Locator.isEditable.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.14
|
||||
|
||||
## async method: Locator.isEnabled
|
||||
* since: v1.14
|
||||
- returns: <[boolean]>
|
||||
|
|
@ -1291,6 +1354,9 @@ Boolean enabled = await page.GetByRole(AriaRole.Button).IsEnabledAsync();
|
|||
### option: Locator.isEnabled.timeout = %%-input-timeout-%%
|
||||
* since: v1.14
|
||||
|
||||
### option: Locator.isEnabled.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.14
|
||||
|
||||
## async method: Locator.isHidden
|
||||
* since: v1.14
|
||||
- returns: <[boolean]>
|
||||
|
|
@ -1502,6 +1568,9 @@ Time to wait between `keydown` and `keyup` in milliseconds. Defaults to 0.
|
|||
### option: Locator.press.timeout = %%-input-timeout-%%
|
||||
* since: v1.14
|
||||
|
||||
### option: Locator.press.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.14
|
||||
|
||||
## async method: Locator.screenshot
|
||||
* since: v1.14
|
||||
- returns: <[Buffer]>
|
||||
|
|
@ -1569,6 +1638,12 @@ Returns the buffer with the captured screenshot.
|
|||
### option: Locator.screenshot.-inline- = %%-screenshot-options-common-list-v1.8-%%
|
||||
* since: v1.14
|
||||
|
||||
### option: Locator.screenshot.timeout = %%-input-timeout-%%
|
||||
* since: v1.14
|
||||
|
||||
### option: Locator.screenshot.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.14
|
||||
|
||||
## async method: Locator.scrollIntoViewIfNeeded
|
||||
* since: v1.14
|
||||
|
||||
|
|
@ -1579,6 +1654,9 @@ completely visible as defined by
|
|||
### option: Locator.scrollIntoViewIfNeeded.timeout = %%-input-timeout-%%
|
||||
* since: v1.14
|
||||
|
||||
### option: Locator.scrollIntoViewIfNeeded.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.14
|
||||
|
||||
## async method: Locator.selectOption
|
||||
* since: v1.14
|
||||
- returns: <[Array]<[string]>>
|
||||
|
|
@ -1664,6 +1742,9 @@ await element.SelectOptionAsync(new[] { "red", "green", "blue" });
|
|||
### option: Locator.selectOption.timeout = %%-input-timeout-%%
|
||||
* since: v1.14
|
||||
|
||||
### option: Locator.selectOption.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.14
|
||||
|
||||
### param: Locator.selectOption.element = %%-python-select-options-element-%%
|
||||
* since: v1.14
|
||||
|
||||
|
|
@ -1690,6 +1771,9 @@ If the element is inside the `<label>` element that has an associated [control](
|
|||
### option: Locator.selectText.timeout = %%-input-timeout-%%
|
||||
* since: v1.14
|
||||
|
||||
### option: Locator.selectText.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.14
|
||||
|
||||
## async method: Locator.setChecked
|
||||
* since: v1.15
|
||||
|
||||
|
|
@ -1747,6 +1831,9 @@ When all steps combined have not finished during the specified [`option: timeout
|
|||
### option: Locator.setChecked.timeout = %%-input-timeout-%%
|
||||
* since: v1.15
|
||||
|
||||
### option: Locator.setChecked.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.15
|
||||
|
||||
### option: Locator.setChecked.trial = %%-input-trial-%%
|
||||
* since: v1.15
|
||||
|
||||
|
|
@ -1863,6 +1950,9 @@ This method expects [Locator] to point to an
|
|||
### option: Locator.setInputFiles.timeout = %%-input-timeout-%%
|
||||
* since: v1.14
|
||||
|
||||
### option: Locator.setInputFiles.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.14
|
||||
|
||||
## async method: Locator.tap
|
||||
* since: v1.14
|
||||
|
||||
|
|
@ -1900,6 +1990,9 @@ When all steps combined have not finished during the specified [`option: timeout
|
|||
### option: Locator.tap.timeout = %%-input-timeout-%%
|
||||
* since: v1.14
|
||||
|
||||
### option: Locator.tap.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.14
|
||||
|
||||
### option: Locator.tap.trial = %%-input-trial-%%
|
||||
* since: v1.14
|
||||
|
||||
|
|
@ -1912,6 +2005,9 @@ Returns the [`node.textContent`](https://developer.mozilla.org/en-US/docs/Web/AP
|
|||
### option: Locator.textContent.timeout = %%-input-timeout-%%
|
||||
* since: v1.14
|
||||
|
||||
### option: Locator.textContent.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.14
|
||||
|
||||
## async method: Locator.type
|
||||
* since: v1.14
|
||||
|
||||
|
|
@ -1996,6 +2092,9 @@ Time to wait between key presses in milliseconds. Defaults to 0.
|
|||
### option: Locator.type.timeout = %%-input-timeout-%%
|
||||
* since: v1.14
|
||||
|
||||
### option: Locator.type.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.14
|
||||
|
||||
## async method: Locator.uncheck
|
||||
* since: v1.14
|
||||
|
||||
|
|
@ -2051,6 +2150,9 @@ When all steps combined have not finished during the specified [`option: timeout
|
|||
### option: Locator.uncheck.timeout = %%-input-timeout-%%
|
||||
* since: v1.14
|
||||
|
||||
### option: Locator.uncheck.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.14
|
||||
|
||||
### option: Locator.uncheck.trial = %%-input-trial-%%
|
||||
* since: v1.14
|
||||
|
||||
|
|
@ -2094,3 +2196,6 @@ orderSent.WaitForAsync();
|
|||
|
||||
### option: Locator.waitFor.timeout = %%-input-timeout-%%
|
||||
* since: v1.16
|
||||
|
||||
### option: Locator.waitFor.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.16
|
||||
|
|
|
|||
|
|
@ -746,6 +746,9 @@ When all steps combined have not finished during the specified [`option: timeout
|
|||
### option: Page.check.timeout = %%-input-timeout-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Page.check.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Page.check.trial = %%-input-trial-%%
|
||||
* since: v1.11
|
||||
|
||||
|
|
@ -795,6 +798,9 @@ When all steps combined have not finished during the specified [`option: timeout
|
|||
### option: Page.click.timeout = %%-input-timeout-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Page.click.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Page.click.trial = %%-input-trial-%%
|
||||
* since: v1.11
|
||||
|
||||
|
|
@ -891,6 +897,9 @@ When all steps combined have not finished during the specified [`option: timeout
|
|||
### option: Page.dblclick.timeout = %%-input-timeout-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Page.dblclick.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Page.dblclick.trial = %%-input-trial-%%
|
||||
* since: v1.11
|
||||
|
||||
|
|
@ -992,6 +1001,9 @@ Optional event-specific initialization properties.
|
|||
### option: Page.dispatchEvent.timeout = %%-input-timeout-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Page.dispatchEvent.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.8
|
||||
|
||||
## async method: Page.dragAndDrop
|
||||
* since: v1.13
|
||||
|
||||
|
|
@ -1067,6 +1079,9 @@ await Page.DragAndDropAsync("#source", "#target", new()
|
|||
### option: Page.dragAndDrop.timeout = %%-input-timeout-%%
|
||||
* since: v1.13
|
||||
|
||||
### option: Page.dragAndDrop.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.13
|
||||
|
||||
### option: Page.dragAndDrop.trial = %%-input-trial-%%
|
||||
* since: v1.13
|
||||
|
||||
|
|
@ -2091,6 +2106,9 @@ Value to fill for the `<input>`, `<textarea>` or `[contenteditable]` element.
|
|||
### option: Page.fill.timeout = %%-input-timeout-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Page.fill.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.8
|
||||
|
||||
## async method: Page.focus
|
||||
* since: v1.8
|
||||
* discouraged: Use locator-based [`method: Locator.focus`] instead. Read more about [locators](../locators.md).
|
||||
|
|
@ -2107,6 +2125,9 @@ This method fetches an element with [`param: selector`] and focuses it. If there
|
|||
### option: Page.focus.timeout = %%-input-timeout-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Page.focus.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.8
|
||||
|
||||
## method: Page.frame
|
||||
* since: v1.8
|
||||
- returns: <[null]|[Frame]>
|
||||
|
|
@ -2260,6 +2281,9 @@ Attribute name to get the value for.
|
|||
### option: Page.getAttribute.timeout = %%-input-timeout-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Page.getAttribute.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.8
|
||||
|
||||
## method: Page.getByAltText
|
||||
* since: v1.27
|
||||
- returns: <[Locator]>
|
||||
|
|
@ -2347,6 +2371,9 @@ Navigate to the previous page in history.
|
|||
### option: Page.goBack.timeout = %%-navigation-timeout-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Page.goBack.timeout = %%-navigation-timeout-js-%%
|
||||
* since: v1.8
|
||||
|
||||
## async method: Page.goForward
|
||||
* since: v1.8
|
||||
- returns: <[null]|[Response]>
|
||||
|
|
@ -2362,6 +2389,9 @@ Navigate to the next page in history.
|
|||
### option: Page.goForward.timeout = %%-navigation-timeout-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Page.goForward.timeout = %%-navigation-timeout-js-%%
|
||||
* since: v1.8
|
||||
|
||||
## async method: Page.goto
|
||||
* since: v1.8
|
||||
* langs:
|
||||
|
|
@ -2406,6 +2436,9 @@ it gets merged via the [`new URL()`](https://developer.mozilla.org/en-US/docs/We
|
|||
### option: Page.goto.timeout = %%-navigation-timeout-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Page.goto.timeout = %%-navigation-timeout-js-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Page.goto.referer
|
||||
* since: v1.8
|
||||
- `referer` <[string]>
|
||||
|
|
@ -2447,6 +2480,9 @@ When all steps combined have not finished during the specified [`option: timeout
|
|||
### option: Page.hover.timeout = %%-input-timeout-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Page.hover.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Page.hover.trial = %%-input-trial-%%
|
||||
* since: v1.11
|
||||
|
||||
|
|
@ -2469,6 +2505,9 @@ Returns `element.innerHTML`.
|
|||
### option: Page.innerHTML.timeout = %%-input-timeout-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Page.innerHTML.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.8
|
||||
|
||||
## async method: Page.innerText
|
||||
* since: v1.8
|
||||
* discouraged: Use locator-based [`method: Locator.innerText`] instead. Read more about [locators](../locators.md).
|
||||
|
|
@ -2485,6 +2524,9 @@ Returns `element.innerText`.
|
|||
### option: Page.innerText.timeout = %%-input-timeout-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Page.innerText.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.8
|
||||
|
||||
## async method: Page.inputValue
|
||||
* since: v1.13
|
||||
* discouraged: Use locator-based [`method: Locator.inputValue`] instead. Read more about [locators](../locators.md).
|
||||
|
|
@ -2503,6 +2545,9 @@ Throws for non-input elements. However, if the element is inside the `<label>` e
|
|||
### option: Page.inputValue.timeout = %%-input-timeout-%%
|
||||
* since: v1.13
|
||||
|
||||
### option: Page.inputValue.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.13
|
||||
|
||||
## async method: Page.isChecked
|
||||
* since: v1.8
|
||||
* discouraged: Use locator-based [`method: Locator.isChecked`] instead. Read more about [locators](../locators.md).
|
||||
|
|
@ -2519,6 +2564,9 @@ Returns whether the element is checked. Throws if the element is not a checkbox
|
|||
### option: Page.isChecked.timeout = %%-input-timeout-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Page.isChecked.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.8
|
||||
|
||||
## method: Page.isClosed
|
||||
* since: v1.8
|
||||
- returns: <[boolean]>
|
||||
|
|
@ -2541,6 +2589,9 @@ Returns whether the element is disabled, the opposite of [enabled](../actionabil
|
|||
### option: Page.isDisabled.timeout = %%-input-timeout-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Page.isDisabled.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.8
|
||||
|
||||
## async method: Page.isEditable
|
||||
* since: v1.8
|
||||
* discouraged: Use locator-based [`method: Locator.isEditable`] instead. Read more about [locators](../locators.md).
|
||||
|
|
@ -2557,6 +2608,9 @@ Returns whether the element is [editable](../actionability.md#editable).
|
|||
### option: Page.isEditable.timeout = %%-input-timeout-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Page.isEditable.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.8
|
||||
|
||||
## async method: Page.isEnabled
|
||||
* since: v1.8
|
||||
* discouraged: Use locator-based [`method: Locator.isEnabled`] instead. Read more about [locators](../locators.md).
|
||||
|
|
@ -2573,6 +2627,9 @@ Returns whether the element is [enabled](../actionability.md#enabled).
|
|||
### option: Page.isEnabled.timeout = %%-input-timeout-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Page.isEnabled.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.8
|
||||
|
||||
## async method: Page.isHidden
|
||||
* since: v1.8
|
||||
* discouraged: Use locator-based [`method: Locator.isHidden`] instead. Read more about [locators](../locators.md).
|
||||
|
|
@ -3011,6 +3068,9 @@ Time to wait between `keydown` and `keyup` in milliseconds. Defaults to 0.
|
|||
### option: Page.press.timeout = %%-input-timeout-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Page.press.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.8
|
||||
|
||||
## async method: Page.querySelector
|
||||
* since: v1.9
|
||||
* discouraged: Use locator-based [`method: Page.locator`] instead. Read more about [locators](../locators.md).
|
||||
|
|
@ -3056,6 +3116,9 @@ last redirect.
|
|||
### option: Page.reload.timeout = %%-navigation-timeout-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Page.reload.timeout = %%-navigation-timeout-js-%%
|
||||
* since: v1.8
|
||||
|
||||
## property: Page.request
|
||||
* since: v1.16
|
||||
* langs:
|
||||
|
|
@ -3280,7 +3343,7 @@ When set to `minimal`, only record information necessary for routing from HAR. T
|
|||
### option: Page.routeFromHAR.url
|
||||
* since: v1.32
|
||||
- `content` <[HarContentPolicy]<"omit"|"embed"|"attach">>
|
||||
Optional setting to control resource content management. If `omit` is specified, content is not persisted. If `attach` is specified, resources are persisted as separate files or entries in the ZIP archive. If `embed` is specified, content is stored inline the HAR file
|
||||
Optional setting to control resource content management. If `omit` is specified, content is not persisted. If `attach` is specified, resources are persisted as separate files or entries in the ZIP archive. If `embed` is specified, content is stored inline the HAR file
|
||||
|
||||
## async method: Page.screenshot
|
||||
* since: v1.8
|
||||
|
|
@ -3291,6 +3354,12 @@ Returns the buffer with the captured screenshot.
|
|||
### option: Page.screenshot.-inline- = %%-screenshot-options-common-list-v1.8-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Page.screenshot.timeout = %%-input-timeout-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Page.screenshot.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Page.screenshot.fullPage = %%-screenshot-option-full-page-%%
|
||||
* since: v1.8
|
||||
|
||||
|
|
@ -3378,6 +3447,9 @@ await page.SelectOptionAsync("select#colors", new[] { "red", "green", "blue" });
|
|||
### option: Page.selectOption.timeout = %%-input-timeout-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Page.selectOption.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.8
|
||||
|
||||
### param: Page.selectOption.element = %%-python-select-options-element-%%
|
||||
* since: v1.8
|
||||
|
||||
|
|
@ -3430,6 +3502,9 @@ When all steps combined have not finished during the specified [`option: timeout
|
|||
### option: Page.setChecked.timeout = %%-input-timeout-%%
|
||||
* since: v1.15
|
||||
|
||||
### option: Page.setChecked.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.15
|
||||
|
||||
### option: Page.setChecked.trial = %%-input-trial-%%
|
||||
* since: v1.15
|
||||
|
||||
|
|
@ -3445,6 +3520,9 @@ HTML markup to assign to the page.
|
|||
### option: Page.setContent.timeout = %%-navigation-timeout-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Page.setContent.timeout = %%-navigation-timeout-js-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Page.setContent.waitUntil = %%-navigation-wait-until-%%
|
||||
* since: v1.8
|
||||
|
||||
|
|
@ -3526,6 +3604,9 @@ This method expects [`param: selector`] to point to an
|
|||
### option: Page.setInputFiles.timeout = %%-input-timeout-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Page.setInputFiles.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.8
|
||||
|
||||
## async method: Page.setViewportSize
|
||||
* since: v1.8
|
||||
|
||||
|
|
@ -3628,6 +3709,9 @@ When all steps combined have not finished during the specified [`option: timeout
|
|||
### option: Page.tap.timeout = %%-input-timeout-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Page.tap.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Page.tap.trial = %%-input-trial-%%
|
||||
* since: v1.11
|
||||
|
||||
|
|
@ -3647,6 +3731,9 @@ Returns `element.textContent`.
|
|||
### option: Page.textContent.timeout = %%-input-timeout-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Page.textContent.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.8
|
||||
|
||||
## async method: Page.title
|
||||
* since: v1.8
|
||||
- returns: <[string]>
|
||||
|
|
@ -3719,6 +3806,9 @@ Time to wait between key presses in milliseconds. Defaults to 0.
|
|||
### option: Page.type.timeout = %%-input-timeout-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Page.type.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.8
|
||||
|
||||
## async method: Page.uncheck
|
||||
* since: v1.8
|
||||
* discouraged: Use locator-based [`method: Locator.uncheck`] instead. Read more about [locators](../locators.md).
|
||||
|
|
@ -3756,6 +3846,9 @@ When all steps combined have not finished during the specified [`option: timeout
|
|||
### option: Page.uncheck.timeout = %%-input-timeout-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Page.uncheck.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Page.uncheck.trial = %%-input-trial-%%
|
||||
* since: v1.11
|
||||
|
||||
|
|
@ -3918,9 +4011,8 @@ frame = event_info.value
|
|||
* since: v1.8
|
||||
* langs: js
|
||||
- `optionsOrPredicate` ?<[function]|[Object]>
|
||||
- `predicate` <[function]> receives the event data and resolves to truthy value when the waiting should resolve.
|
||||
- `timeout` ?<[float]> 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 [`method: BrowserContext.setDefaultTimeout`].
|
||||
- `predicate` <[function]> Receives the event data and resolves to truthy value when the waiting should resolve.
|
||||
- `timeout` ?<[float]> Maximum time to wait for in milliseconds. Defaults to `0` - no timeout. The default value can be changed via `actionTimeout` option in the config, or by using the [`method: BrowserContext.setDefaultTimeout`] or [`method: Page.setDefaultTimeout`] methods.
|
||||
|
||||
Either a predicate that receives an event or an options object. Optional.
|
||||
|
||||
|
|
@ -4096,7 +4188,10 @@ Optional argument to pass to [`param: expression`].
|
|||
### option: Page.waitForFunction.polling = %%-csharp-java-wait-for-function-polling-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Page.waitForFunction.timeout = %%-wait-for-timeout-%%
|
||||
### option: Page.waitForFunction.timeout = %%-wait-for-function-timeout-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Page.waitForFunction.timeout = %%-wait-for-function-timeout-js-%%
|
||||
* since: v1.8
|
||||
|
||||
## async method: Page.waitForLoadState
|
||||
|
|
@ -4185,6 +4280,9 @@ Console.WriteLine(await popup.TitleAsync()); // popup is ready to use.
|
|||
### option: Page.waitForLoadState.timeout = %%-navigation-timeout-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Page.waitForLoadState.timeout = %%-navigation-timeout-js-%%
|
||||
* since: v1.8
|
||||
|
||||
## async method: Page.waitForNavigation
|
||||
* since: v1.8
|
||||
* deprecated: This method is inherently racy, please use [`method: Page.waitForURL`] instead.
|
||||
|
|
@ -4265,6 +4363,9 @@ a navigation.
|
|||
### option: Page.waitForNavigation.timeout = %%-navigation-timeout-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Page.waitForNavigation.timeout = %%-navigation-timeout-js-%%
|
||||
* since: v1.8
|
||||
|
||||
### param: Page.waitForNavigation.callback = %%-java-wait-for-event-callback-%%
|
||||
* since: v1.9
|
||||
|
||||
|
|
@ -4678,6 +4779,9 @@ class FrameExamples
|
|||
### option: Page.waitForSelector.timeout = %%-input-timeout-%%
|
||||
* since: v1.8
|
||||
|
||||
### option: Page.waitForSelector.timeout = %%-input-timeout-js-%%
|
||||
* since: v1.8
|
||||
|
||||
## async method: Page.waitForTimeout
|
||||
* since: v1.8
|
||||
|
||||
|
|
@ -4757,6 +4861,9 @@ await page.WaitForURLAsync("**/target.html");
|
|||
### option: Page.waitForURL.timeout = %%-navigation-timeout-%%
|
||||
* since: v1.11
|
||||
|
||||
### option: Page.waitForURL.timeout = %%-navigation-timeout-js-%%
|
||||
* since: v1.11
|
||||
|
||||
### option: Page.waitForURL.waitUntil = %%-navigation-wait-until-%%
|
||||
* since: v1.11
|
||||
|
||||
|
|
|
|||
|
|
@ -75,8 +75,8 @@ Event name, same one would pass into `webSocket.on(event)`.
|
|||
* since: v1.8
|
||||
* langs: js
|
||||
- `optionsOrPredicate` ?<[function]|[Object]>
|
||||
- `predicate` <[function]> receives the event data and resolves to truthy value when the waiting should resolve.
|
||||
- `timeout` ?<[float]> 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 [`method: BrowserContext.setDefaultTimeout`].
|
||||
- `predicate` <[function]> Receives the event data and resolves to truthy value when the waiting should resolve.
|
||||
- `timeout` ?<[float]> Maximum time to wait for in milliseconds. Defaults to `0` - no timeout. The default value can be changed via `actionTimeout` option in the config, or by using the [`method: BrowserContext.setDefaultTimeout`] or [`method: Page.setDefaultTimeout`] methods.
|
||||
|
||||
Either a predicate that receives an event or an options object. Optional.
|
||||
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ When to consider operation succeeded, defaults to `load`. Events can be either:
|
|||
* `'commit'` - consider operation to be finished when network response is received and the document started loading.
|
||||
|
||||
## navigation-timeout
|
||||
* langs: python, java, csharp
|
||||
- `timeout` <[float]>
|
||||
|
||||
Maximum operation time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout.
|
||||
|
|
@ -17,11 +18,27 @@ The default value can be changed by using the
|
|||
[`method: Page.setDefaultNavigationTimeout`] or
|
||||
[`method: Page.setDefaultTimeout`] methods.
|
||||
|
||||
## wait-for-timeout
|
||||
## navigation-timeout-js
|
||||
* langs: js
|
||||
- `timeout` <[float]>
|
||||
|
||||
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 [`method: BrowserContext.setDefaultTimeout`].
|
||||
Maximum operation time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via `navigationTimeout` option in the config, or by using the [`method: BrowserContext.setDefaultNavigationTimeout`],
|
||||
[`method: BrowserContext.setDefaultTimeout`],
|
||||
[`method: Page.setDefaultNavigationTimeout`] or
|
||||
[`method: Page.setDefaultTimeout`] methods.
|
||||
|
||||
## wait-for-function-timeout
|
||||
* langs: python, java, csharp
|
||||
- `timeout` <[float]>
|
||||
|
||||
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 [`method: BrowserContext.setDefaultTimeout`] or [`method: Page.setDefaultTimeout`] methods.
|
||||
|
||||
## wait-for-function-timeout-js
|
||||
* langs: js
|
||||
- `timeout` <[float]>
|
||||
|
||||
Maximum time to wait for in milliseconds. Defaults to `0` - no timeout. The default value can be changed via `actionTimeout` option in the config, or by using the [`method: BrowserContext.setDefaultTimeout`] or [`method: Page.setDefaultTimeout`] methods.
|
||||
|
||||
## input-strict
|
||||
- `strict` <[boolean]>
|
||||
|
|
@ -30,12 +47,20 @@ When true, the call requires selector to resolve to a single element. If given s
|
|||
than one element, the call throws an exception.
|
||||
|
||||
## input-timeout
|
||||
* langs: python, java, csharp
|
||||
- `timeout` <[float]>
|
||||
|
||||
Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by
|
||||
Maximum time in milliseconds. Defaults to `30000` (30 seconds). Pass `0` to disable timeout. The default value can be changed by
|
||||
using the [`method: BrowserContext.setDefaultTimeout`] or
|
||||
[`method: Page.setDefaultTimeout`] methods.
|
||||
|
||||
## input-timeout-js
|
||||
* langs: js
|
||||
- `timeout` <[float]>
|
||||
|
||||
Maximum time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via `actionTimeout` option in the config, or by using the [`method: BrowserContext.setDefaultTimeout`] or
|
||||
[`method: Page.setDefaultTimeout`] methods.
|
||||
|
||||
## input-no-wait-after
|
||||
- `noWaitAfter` <[boolean]>
|
||||
|
||||
|
|
@ -1096,7 +1121,6 @@ When set to `"hide"`, screenshot will hide text caret. When set to `"initial"`,
|
|||
- %%-screenshot-option-caret-%%
|
||||
- %%-screenshot-option-type-%%
|
||||
- %%-screenshot-option-mask-%%
|
||||
- %%-input-timeout-%%
|
||||
|
||||
## locator-get-by-test-id-test-id
|
||||
* since: v1.27
|
||||
|
|
|
|||
463
packages/playwright-core/types/types.d.ts
vendored
463
packages/playwright-core/types/types.d.ts
vendored
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue