| Package | Description |
|---|---|
| com.microsoft.playwright |
| Modifier and Type | Field and Description |
|---|---|
Predicate<Worker> |
Page.WaitForWorkerOptions.predicate
Receives the
Worker object and resolves to truthy value when the waiting should resolve. |
| Modifier and Type | Method and Description |
|---|---|
default Worker |
Worker.waitForClose(Runnable callback)
Performs action and waits for the Worker to close.
|
Worker |
Worker.waitForClose(Worker.WaitForCloseOptions options,
Runnable callback)
Performs action and waits for the Worker to close.
|
Worker |
Page.waitForWorker(Page.WaitForWorkerOptions options,
Runnable callback)
Performs action and waits for a new
Worker. |
default Worker |
Page.waitForWorker(Runnable callback)
Performs action and waits for a new
Worker. |
| Modifier and Type | Method and Description |
|---|---|
List<Worker> |
Page.workers()
This method returns all of the dedicated WebWorkers associated with the page.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Worker.offClose(Consumer<Worker> handler)
Removes handler that was previously added with
onClose(handler). |
void |
Page.offWorker(Consumer<Worker> handler)
Removes handler that was previously added with
onWorker(handler). |
void |
Worker.onClose(Consumer<Worker> handler)
Emitted when this dedicated WebWorker is
terminated.
|
void |
Page.onWorker(Consumer<Worker> handler)
Emitted when a dedicated WebWorker is
spawned by the page.
|
Page.WaitForWorkerOptions |
Page.WaitForWorkerOptions.setPredicate(Predicate<Worker> predicate) |
Copyright © 2021. All rights reserved.