Package com.microsoft.playwright
Class Page.WaitForFunctionOptions
- java.lang.Object
-
- com.microsoft.playwright.Page.WaitForFunctionOptions
-
-
Field Summary
Fields Modifier and Type Field Description Double
pollingInterval
If specified, then it is treated as an interval in milliseconds at which the function would be executed.Double
timeout
maximum time to wait for in milliseconds.
-
Constructor Summary
Constructors Constructor Description WaitForFunctionOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Page.WaitForFunctionOptions
setPollingInterval(double pollingInterval)
If specified, then it is treated as an interval in milliseconds at which the function would be executed.Page.WaitForFunctionOptions
setTimeout(double timeout)
maximum time to wait for in milliseconds.
-
-
-
Field Detail
-
pollingInterval
public Double pollingInterval
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 specifiedexpression
is executed inrequestAnimationFrame
callback.
-
timeout
public Double timeout
maximum time to wait for in milliseconds. Defaults to30000
(30 seconds). Pass0
to disable timeout. The default value can be changed by using theBrowserContext.setDefaultTimeout()
.
-
-
Method Detail
-
setPollingInterval
public Page.WaitForFunctionOptions setPollingInterval(double pollingInterval)
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 specifiedexpression
is executed inrequestAnimationFrame
callback.
-
setTimeout
public Page.WaitForFunctionOptions setTimeout(double timeout)
maximum time to wait for in milliseconds. Defaults to30000
(30 seconds). Pass0
to disable timeout. The default value can be changed by using theBrowserContext.setDefaultTimeout()
.
-
-