| Package | Description |
|---|---|
| com.microsoft.playwright |
| Modifier and Type | Field and Description |
|---|---|
Predicate<WebSocket> |
Page.WaitForWebSocketOptions.predicate
Receives the
WebSocket object and resolves to truthy value when the waiting should resolve. |
| Modifier and Type | Method and Description |
|---|---|
WebSocket |
Page.waitForWebSocket(Page.WaitForWebSocketOptions options,
Runnable callback)
Performs action and waits for a new
WebSocket. |
default WebSocket |
Page.waitForWebSocket(Runnable callback)
Performs action and waits for a new
WebSocket. |
| Modifier and Type | Method and Description |
|---|---|
void |
WebSocket.offClose(Consumer<WebSocket> handler)
Removes handler that was previously added with
onClose(handler). |
void |
Page.offWebSocket(Consumer<WebSocket> handler)
Removes handler that was previously added with
onWebSocket(handler). |
void |
WebSocket.onClose(Consumer<WebSocket> handler)
Fired when the websocket closes.
|
void |
Page.onWebSocket(Consumer<WebSocket> handler)
Emitted when
WebSocket request is sent. |
Page.WaitForWebSocketOptions |
Page.WaitForWebSocketOptions.setPredicate(Predicate<WebSocket> predicate) |
Copyright © 2021. All rights reserved.