diff --git a/docs/src/api/class-frame.md b/docs/src/api/class-frame.md index f11c7b7de0c81..372d9558cb294 100644 --- a/docs/src/api/class-frame.md +++ b/docs/src/api/class-frame.md @@ -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-%% diff --git a/docs/src/api/class-page.md b/docs/src/api/class-page.md index 5ded6c24ab667..284e43834794e 100644 --- a/docs/src/api/class-page.md +++ b/docs/src/api/class-page.md @@ -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-%% diff --git a/docs/src/api/params.md b/docs/src/api/params.md index 0a3c70850c41b..35511ae37d77e 100644 --- a/docs/src/api/params.md +++ b/docs/src/api/params.md @@ -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]>>