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