Uses of Interface
com.microsoft.playwright.Worker
-
Packages that use Worker Package Description com.microsoft.playwright -
-
Uses of Worker in com.microsoft.playwright
Fields in com.microsoft.playwright with type parameters of type Worker Modifier and Type Field Description Predicate<Worker>Page.WaitForWorkerOptions. predicateReceives theWorkerobject and resolves to truthy value when the waiting should resolve.Methods in com.microsoft.playwright that return Worker Modifier and Type Method Description WorkerWorker. waitForClose(Worker.WaitForCloseOptions options, Runnable callback)Performs action and waits for the Worker to close.default WorkerWorker. waitForClose(Runnable callback)Performs action and waits for the Worker to close.WorkerPage. waitForWorker(Page.WaitForWorkerOptions options, Runnable callback)Performs action and waits for a newWorker.default WorkerPage. waitForWorker(Runnable callback)Performs action and waits for a newWorker.Methods in com.microsoft.playwright that return types with arguments of type Worker Modifier and Type Method Description List<Worker>Page. workers()This method returns all of the dedicated WebWorkers associated with the page.Method parameters in com.microsoft.playwright with type arguments of type Worker Modifier and Type Method Description voidWorker. offClose(Consumer<Worker> handler)Removes handler that was previously added withonClose(handler).voidPage. offWorker(Consumer<Worker> handler)Removes handler that was previously added withonWorker(handler).voidWorker. onClose(Consumer<Worker> handler)Emitted when this dedicated WebWorker is terminated.voidPage. onWorker(Consumer<Worker> handler)Emitted when a dedicated WebWorker is spawned by the page.Page.WaitForWorkerOptionsPage.WaitForWorkerOptions. setPredicate(Predicate<Worker> predicate)Receives theWorkerobject and resolves to truthy value when the waiting should resolve.
-