Worker
Playwright\Worker\WorkerInterface
Methods
url()
stringReturns the URL of the web worker.
function url(): string
evaluate()
mixedEvaluates expression in the worker context.
function evaluate(string $expression, mixed $arg = null): mixed
evaluateHandle()
JSHandleInterfaceEvaluates expression in the worker context and returns a JSHandle.
function evaluateHandle(string $expression, mixed $arg = null): JSHandleInterface
waitForEvent()
arrayWaits for event to fire and passes its value into the predicate function.
function waitForEvent(string $event, ?callable $predicate = null, array $options = []): array