| Modifier and Type | Field and Description |
|---|---|
Predicate<WebSocket> |
predicate
Receives the
WebSocket object and resolves to truthy value when the waiting should resolve. |
Double |
timeout
Maximum time to wait for in milliseconds.
|
| Constructor and Description |
|---|
WaitForWebSocketOptions() |
| Modifier and Type | Method and Description |
|---|---|
Page.WaitForWebSocketOptions |
setPredicate(Predicate<WebSocket> predicate) |
Page.WaitForWebSocketOptions |
setTimeout(double timeout) |
public Predicate<WebSocket> predicate
WebSocket object and resolves to truthy value when the waiting should resolve.public Double timeout
30000 (30 seconds). Pass 0 to disable timeout. The default
value can be changed by using the BrowserContext.setDefaultTimeout().public Page.WaitForWebSocketOptions setPredicate(Predicate<WebSocket> predicate)
public Page.WaitForWebSocketOptions setTimeout(double timeout)
Copyright © 2021. All rights reserved.