| Package | Description |
|---|---|
| com.microsoft.playwright |
| Modifier and Type | Field and Description |
|---|---|
Predicate<ConsoleMessage> |
Page.WaitForConsoleMessageOptions.predicate
Receives the
ConsoleMessage object and resolves to truthy value when the waiting should resolve. |
| Modifier and Type | Method and Description |
|---|---|
ConsoleMessage |
Page.waitForConsoleMessage(Page.WaitForConsoleMessageOptions options,
Runnable callback)
Performs action and waits for a
ConsoleMessage to be logged by in the page. |
default ConsoleMessage |
Page.waitForConsoleMessage(Runnable callback)
Performs action and waits for a
ConsoleMessage to be logged by in the page. |
| Modifier and Type | Method and Description |
|---|---|
void |
Page.offConsoleMessage(Consumer<ConsoleMessage> handler)
Removes handler that was previously added with
onConsoleMessage(handler). |
void |
Page.onConsoleMessage(Consumer<ConsoleMessage> handler)
Emitted when JavaScript within the page calls one of console API methods, e.g.
|
Page.WaitForConsoleMessageOptions |
Page.WaitForConsoleMessageOptions.setPredicate(Predicate<ConsoleMessage> predicate) |
Copyright © 2021. All rights reserved.