Package com.microsoft.playwright
Class BrowserContext.WaitForPageOptions
- java.lang.Object
-
- com.microsoft.playwright.BrowserContext.WaitForPageOptions
-
- Enclosing interface:
- BrowserContext
public static class BrowserContext.WaitForPageOptions extends Object
-
-
Constructor Summary
Constructors Constructor Description WaitForPageOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BrowserContext.WaitForPageOptionssetPredicate(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 Predicate<Page> predicate
Receives thePageobject 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.WaitForPageOptions setPredicate(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().
-
-