Package com.microsoft.playwright
Class Frame.WaitForFunctionOptions
- java.lang.Object
-
- com.microsoft.playwright.Frame.WaitForFunctionOptions
-
-
Field Summary
Fields Modifier and Type Field Description DoublepollingIntervalIf specified, then it is treated as an interval in milliseconds at which the function would be executed.DoubletimeoutMaximum 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 Frame.WaitForFunctionOptionssetPollingInterval(double pollingInterval)If specified, then it is treated as an interval in milliseconds at which the function would be executed.Frame.WaitForFunctionOptionssetTimeout(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 specifiedexpressionis executed inrequestAnimationFramecallback.
-
timeout
public Double timeout
Maximum time to wait for in milliseconds. Defaults to30000(30 seconds). Pass0to disable timeout. The default value can be changed by using theBrowserContext.setDefaultTimeout()orPage.setDefaultTimeout()methods.
-
-
Method Detail
-
setPollingInterval
public Frame.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 specifiedexpressionis executed inrequestAnimationFramecallback.
-
setTimeout
public Frame.WaitForFunctionOptions setTimeout(double timeout)
Maximum time to wait for in milliseconds. Defaults to30000(30 seconds). Pass0to disable timeout. The default value can be changed by using theBrowserContext.setDefaultTimeout()orPage.setDefaultTimeout()methods.
-
-