Package com.microsoft.playwright
Class BrowserContext.WaitForConsoleMessageOptions
- java.lang.Object
-
- com.microsoft.playwright.BrowserContext.WaitForConsoleMessageOptions
-
- Enclosing interface:
- BrowserContext
public static class BrowserContext.WaitForConsoleMessageOptions extends Object
-
-
Field Summary
Fields Modifier and Type Field Description Predicate<ConsoleMessage>predicateReceives theConsoleMessageobject and resolves to truthy value when the waiting should resolve.DoubletimeoutMaximum time to wait for in milliseconds.
-
Constructor Summary
Constructors Constructor Description WaitForConsoleMessageOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BrowserContext.WaitForConsoleMessageOptionssetPredicate(Predicate<ConsoleMessage> predicate)Receives theConsoleMessageobject and resolves to truthy value when the waiting should resolve.BrowserContext.WaitForConsoleMessageOptionssetTimeout(double timeout)Maximum time to wait for in milliseconds.
-
-
-
Field Detail
-
predicate
public Predicate<ConsoleMessage> predicate
Receives theConsoleMessageobject and resolves to truthy value when the waiting should resolve.
-
timeout
public Double timeout
Maximum time to wait for in milliseconds. Defaults to30000(30 seconds). Pass0to disable timeout. The default value can be changed by using theBrowserContext.setDefaultTimeout().
-
-
Method Detail
-
setPredicate
public BrowserContext.WaitForConsoleMessageOptions setPredicate(Predicate<ConsoleMessage> predicate)
Receives theConsoleMessageobject and resolves to truthy value when the waiting should resolve.
-
setTimeout
public BrowserContext.WaitForConsoleMessageOptions setTimeout(double timeout)
Maximum time to wait for in milliseconds. Defaults to30000(30 seconds). Pass0to disable timeout. The default value can be changed by using theBrowserContext.setDefaultTimeout().
-
-