Package com.microsoft.playwright
Class BrowserContext.WaitForPageOptions
- java.lang.Object
-
- com.microsoft.playwright.BrowserContext.WaitForPageOptions
-
- Enclosing interface:
- BrowserContext
public static class BrowserContext.WaitForPageOptions extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description WaitForPageOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BrowserContext.WaitForPageOptionssetPredicate(java.util.function.Predicate<Page> predicate)Receives thePageobject and resolves to truthy value when the waiting should resolve.BrowserContext.WaitForPageOptionssetTimeout(double timeout)Maximum time to wait for in milliseconds.
-
-
-
Field Detail
-
predicate
public java.util.function.Predicate<Page> predicate
Receives thePageobject and resolves to truthy value when the waiting should resolve.
-
timeout
public java.lang.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.WaitForPageOptions setPredicate(java.util.function.Predicate<Page> predicate)
Receives thePageobject and resolves to truthy value when the waiting should resolve.
-
setTimeout
public BrowserContext.WaitForPageOptions 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().
-
-