| Modifier and Type | Field and Description |
|---|---|
Predicate<ConsoleMessage> |
predicate
Receives the
ConsoleMessage object and resolves to truthy value when the waiting should resolve. |
Double |
timeout
Maximum time to wait for in milliseconds.
|
| Constructor and Description |
|---|
WaitForConsoleMessageOptions() |
| Modifier and Type | Method and Description |
|---|---|
Page.WaitForConsoleMessageOptions |
setPredicate(Predicate<ConsoleMessage> predicate) |
Page.WaitForConsoleMessageOptions |
setTimeout(double timeout) |
public Predicate<ConsoleMessage> predicate
ConsoleMessage 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.WaitForConsoleMessageOptions setPredicate(Predicate<ConsoleMessage> predicate)
public Page.WaitForConsoleMessageOptions setTimeout(double timeout)
Copyright © 2021. All rights reserved.