docs: always use number for polling option in java (#5519)

This commit is contained in:
Yury Semikhatsky 2021-02-19 12:19:34 -08:00 committed by GitHub
parent cbcc609fa1
commit 6841da1487
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 18 additions and 10 deletions

View file

@ -1086,12 +1086,9 @@ frame.wait_for_function("selector => !!document.querySelector(selector)", select
Optional argument to pass to [`param: expression`].
### option: Frame.waitForFunction.polling
- `polling` <[float]|"raf">
### option: Frame.waitForFunction.polling = %%-js-python-wait-for-function-polling-%%
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`.
### option: Frame.waitForFunction.polling = %%-csharp-java-wait-for-function-polling-%%
### option: Frame.waitForFunction.timeout = %%-wait-for-timeout-%%

View file

@ -2411,12 +2411,9 @@ Shortcut for main frame's [`method: Frame.waitForFunction`].
Optional argument to pass to [`param: expression`].
### option: Page.waitForFunction.polling
- `polling` <[float]|"raf">
### option: Page.waitForFunction.polling = %%-js-python-wait-for-function-polling-%%
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`.
### option: Page.waitForFunction.polling = %%-csharp-java-wait-for-function-polling-%%
### option: Page.waitForFunction.timeout = %%-wait-for-timeout-%%

View file

@ -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`.
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
* langs: js, python
- `ignoreDefaultArgs` <[boolean]|[Array]<[string]>>