docs: always use number for polling option in java (#5519)
This commit is contained in:
parent
cbcc609fa1
commit
6841da1487
|
|
@ -1086,12 +1086,9 @@ frame.wait_for_function("selector => !!document.querySelector(selector)", select
|
||||||
|
|
||||||
Optional argument to pass to [`param: expression`].
|
Optional argument to pass to [`param: expression`].
|
||||||
|
|
||||||
### option: Frame.waitForFunction.polling
|
### option: Frame.waitForFunction.polling = %%-js-python-wait-for-function-polling-%%
|
||||||
- `polling` <[float]|"raf">
|
|
||||||
|
|
||||||
If [`option: polling`] is `'raf'`, then [`param: expression`] is constantly executed in `requestAnimationFrame`
|
### option: Frame.waitForFunction.polling = %%-csharp-java-wait-for-function-polling-%%
|
||||||
callback. If [`option: polling`] is a number, then it is treated as an interval in milliseconds at which the function
|
|
||||||
would be executed. Defaults to `raf`.
|
|
||||||
|
|
||||||
### option: Frame.waitForFunction.timeout = %%-wait-for-timeout-%%
|
### option: Frame.waitForFunction.timeout = %%-wait-for-timeout-%%
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2411,12 +2411,9 @@ Shortcut for main frame's [`method: Frame.waitForFunction`].
|
||||||
|
|
||||||
Optional argument to pass to [`param: expression`].
|
Optional argument to pass to [`param: expression`].
|
||||||
|
|
||||||
### option: Page.waitForFunction.polling
|
### option: Page.waitForFunction.polling = %%-js-python-wait-for-function-polling-%%
|
||||||
- `polling` <[float]|"raf">
|
|
||||||
|
|
||||||
If [`option: polling`] is `'raf'`, then [`param: expression`] is constantly executed in `requestAnimationFrame`
|
### option: Page.waitForFunction.polling = %%-csharp-java-wait-for-function-polling-%%
|
||||||
callback. If [`option: polling`] is a number, then it is treated as an interval in milliseconds at which the function
|
|
||||||
would be executed. Defaults to `raf`.
|
|
||||||
|
|
||||||
### option: Page.waitForFunction.timeout = %%-wait-for-timeout-%%
|
### option: Page.waitForFunction.timeout = %%-wait-for-timeout-%%
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -98,6 +98,20 @@ Defaults to `'visible'`. Can be either:
|
||||||
* `'hidden'` - wait for element to be either detached from DOM, or have an empty bounding box or `visibility:hidden`.
|
* `'hidden'` - wait for element to be either detached from DOM, or have an empty bounding box or `visibility:hidden`.
|
||||||
This is opposite to the `'visible'` option.
|
This is opposite to the `'visible'` option.
|
||||||
|
|
||||||
|
## js-python-wait-for-function-polling
|
||||||
|
* langs: js, python
|
||||||
|
- `polling` <[float]|"raf">
|
||||||
|
|
||||||
|
If [`option: polling`] is `'raf'`, then [`param: expression`] is constantly executed in `requestAnimationFrame`
|
||||||
|
callback. If [`option: polling`] is a number, then it is treated as an interval in milliseconds at which the function
|
||||||
|
would be executed. Defaults to `raf`.
|
||||||
|
|
||||||
|
## csharp-java-wait-for-function-polling
|
||||||
|
* langs: csharp, java
|
||||||
|
- `pollingInterval` <[float]>
|
||||||
|
|
||||||
|
If specified, then it is treated as an interval in milliseconds at which the function would be executed. By default if the option is not specified [`param: expression`] is executed in `requestAnimationFrame` callback.
|
||||||
|
|
||||||
## browser-option-ignoredefaultargs
|
## browser-option-ignoredefaultargs
|
||||||
* langs: js, python
|
* langs: js, python
|
||||||
- `ignoreDefaultArgs` <[boolean]|[Array]<[string]>>
|
- `ignoreDefaultArgs` <[boolean]|[Array]<[string]>>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue