Package com.microsoft.playwright
Class WebSocket.WaitForFrameReceivedOptions
- java.lang.Object
-
- com.microsoft.playwright.WebSocket.WaitForFrameReceivedOptions
-
-
Field Summary
Fields Modifier and Type Field Description Predicate<WebSocketFrame>
predicate
Receives theWebSocketFrame
object and resolves to truthy value when the waiting should resolve.Double
timeout
Maximum time to wait for in milliseconds.
-
Constructor Summary
Constructors Constructor Description WaitForFrameReceivedOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WebSocket.WaitForFrameReceivedOptions
setPredicate(Predicate<WebSocketFrame> predicate)
Receives theWebSocketFrame
object and resolves to truthy value when the waiting should resolve.WebSocket.WaitForFrameReceivedOptions
setTimeout(double timeout)
Maximum time to wait for in milliseconds.
-
-
-
Field Detail
-
predicate
public Predicate<WebSocketFrame> predicate
Receives theWebSocketFrame
object and resolves to truthy value when the waiting should resolve.
-
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
-
setPredicate
public WebSocket.WaitForFrameReceivedOptions setPredicate(Predicate<WebSocketFrame> predicate)
Receives theWebSocketFrame
object and resolves to truthy value when the waiting should resolve.
-
setTimeout
public WebSocket.WaitForFrameReceivedOptions 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()
.
-
-