Package com.microsoft.playwright
Class Page.WaitForPopupOptions
- java.lang.Object
-
- com.microsoft.playwright.Page.WaitForPopupOptions
-
-
Constructor Summary
Constructors Constructor Description WaitForPopupOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Page.WaitForPopupOptionssetPredicate(Predicate<Page> predicate)Receives thePageobject and resolves to truthy value when the waiting should resolve.Page.WaitForPopupOptionssetTimeout(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 Page.WaitForPopupOptions setPredicate(Predicate<Page> predicate)
Receives thePageobject and resolves to truthy value when the waiting should resolve.
-
setTimeout
public Page.WaitForPopupOptions 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().
-
-