Package com.microsoft.playwright
Class Page.WaitForWebSocketOptions
java.lang.Object
com.microsoft.playwright.Page.WaitForWebSocketOptions
- Enclosing interface:
Page
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsetPredicate(Predicate<WebSocket> predicate) Receives theWebSocketobject and resolves to truthy value when the waiting should resolve.setTimeout(double timeout) Maximum time to wait for in milliseconds.
-
Field Details
-
predicate
Receives theWebSocketobject and resolves to truthy value when the waiting should resolve. -
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().
-
-
Constructor Details
-
WaitForWebSocketOptions
public WaitForWebSocketOptions()
-
-
Method Details
-
setPredicate
Receives theWebSocketobject and resolves to truthy value when the waiting should resolve. -
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().
-