| Package | Description |
|---|---|
| com.microsoft.playwright |
| Modifier and Type | Field and Description |
|---|---|
Predicate<Download> |
Page.WaitForDownloadOptions.predicate
Receives the
Download object and resolves to truthy value when the waiting should resolve. |
| Modifier and Type | Method and Description |
|---|---|
Download |
Page.waitForDownload(Page.WaitForDownloadOptions options,
Runnable callback)
Performs action and waits for a new
Download. |
default Download |
Page.waitForDownload(Runnable callback)
Performs action and waits for a new
Download. |
| Modifier and Type | Method and Description |
|---|---|
void |
Page.offDownload(Consumer<Download> handler)
Removes handler that was previously added with
onDownload(handler). |
void |
Page.onDownload(Consumer<Download> handler)
Emitted when attachment download started.
|
Page.WaitForDownloadOptions |
Page.WaitForDownloadOptions.setPredicate(Predicate<Download> predicate) |
Copyright © 2021. All rights reserved.