| Package | Description |
|---|---|
| com.microsoft.playwright |
| Modifier and Type | Field and Description |
|---|---|
Predicate<FileChooser> |
Page.WaitForFileChooserOptions.predicate
Receives the
FileChooser object and resolves to truthy value when the waiting should resolve. |
| Modifier and Type | Method and Description |
|---|---|
FileChooser |
Page.waitForFileChooser(Page.WaitForFileChooserOptions options,
Runnable callback)
Performs action and waits for a new
FileChooser to be created. |
default FileChooser |
Page.waitForFileChooser(Runnable callback)
Performs action and waits for a new
FileChooser to be created. |
| Modifier and Type | Method and Description |
|---|---|
void |
Page.offFileChooser(Consumer<FileChooser> handler)
Removes handler that was previously added with
onFileChooser(handler). |
void |
Page.onFileChooser(Consumer<FileChooser> handler)
Emitted when a file chooser is supposed to appear, such as after clicking the
<input type=file>. |
Page.WaitForFileChooserOptions |
Page.WaitForFileChooserOptions.setPredicate(Predicate<FileChooser> predicate) |
Copyright © 2021. All rights reserved.