Package com.microsoft.playwright
Class Page.WaitForFileChooserOptions
- java.lang.Object
-
- com.microsoft.playwright.Page.WaitForFileChooserOptions
-
-
Field Summary
Fields Modifier and Type Field Description Predicate<FileChooser>predicateReceives theFileChooserobject and resolves to truthy value when the waiting should resolve.DoubletimeoutMaximum time to wait for in milliseconds.
-
Constructor Summary
Constructors Constructor Description WaitForFileChooserOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Page.WaitForFileChooserOptionssetPredicate(Predicate<FileChooser> predicate)Receives theFileChooserobject and resolves to truthy value when the waiting should resolve.Page.WaitForFileChooserOptionssetTimeout(double timeout)Maximum time to wait for in milliseconds.
-
-
-
Field Detail
-
predicate
public Predicate<FileChooser> predicate
Receives theFileChooserobject 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.WaitForFileChooserOptions setPredicate(Predicate<FileChooser> predicate)
Receives theFileChooserobject and resolves to truthy value when the waiting should resolve.
-
setTimeout
public Page.WaitForFileChooserOptions 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().
-
-