Package com.microsoft.playwright
Class Frame.WaitForFunctionOptions
java.lang.Object
com.microsoft.playwright.Frame.WaitForFunctionOptions
- Enclosing interface:
Frame
-
Field Summary
FieldsModifier and TypeFieldDescriptionIf specified, then it is treated as an interval in milliseconds at which the function would be executed.Maximum time to wait for in milliseconds. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsetPollingInterval(double pollingInterval) If specified, then it is treated as an interval in milliseconds at which the function would be executed.setTimeout(double timeout) Maximum time to wait for in milliseconds.
-
Field Details
-
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
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.
-
-
Constructor Details
-
WaitForFunctionOptions
public WaitForFunctionOptions()
-
-
Method Details
-
setPollingInterval
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
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.
-