| Package | Description |
|---|---|
| com.microsoft.playwright |
| Modifier and Type | Field and Description |
|---|---|
Predicate<WebSocketFrame> |
WebSocket.WaitForFrameReceivedOptions.predicate
Receives the
WebSocketFrame object and resolves to truthy value when the waiting should resolve. |
Predicate<WebSocketFrame> |
WebSocket.WaitForFrameSentOptions.predicate
Receives the
WebSocketFrame object and resolves to truthy value when the waiting should resolve. |
| Modifier and Type | Method and Description |
|---|---|
default WebSocketFrame |
WebSocket.waitForFrameReceived(Runnable callback)
Performs action and waits for a frame to be sent.
|
WebSocketFrame |
WebSocket.waitForFrameReceived(WebSocket.WaitForFrameReceivedOptions options,
Runnable callback)
Performs action and waits for a frame to be sent.
|
default WebSocketFrame |
WebSocket.waitForFrameSent(Runnable callback)
Performs action and waits for a frame to be sent.
|
WebSocketFrame |
WebSocket.waitForFrameSent(WebSocket.WaitForFrameSentOptions options,
Runnable callback)
Performs action and waits for a frame to be sent.
|
| Modifier and Type | Method and Description |
|---|---|
void |
WebSocket.offFrameReceived(Consumer<WebSocketFrame> handler)
Removes handler that was previously added with
onFrameReceived(handler). |
void |
WebSocket.offFrameSent(Consumer<WebSocketFrame> handler)
Removes handler that was previously added with
onFrameSent(handler). |
void |
WebSocket.onFrameReceived(Consumer<WebSocketFrame> handler)
Fired when the websocket receives a frame.
|
void |
WebSocket.onFrameSent(Consumer<WebSocketFrame> handler)
Fired when the websocket sends a frame.
|
WebSocket.WaitForFrameReceivedOptions |
WebSocket.WaitForFrameReceivedOptions.setPredicate(Predicate<WebSocketFrame> predicate) |
WebSocket.WaitForFrameSentOptions |
WebSocket.WaitForFrameSentOptions.setPredicate(Predicate<WebSocketFrame> predicate) |
Copyright © 2021. All rights reserved.