Worker

Playwright\Worker\WorkerInterface

Methods

url()

string

Returns the URL of the web worker.

function url(): string

evaluate()

mixed

Evaluates expression in the worker context.

function evaluate(string $expression, mixed $arg = null): mixed

evaluateHandle()

JSHandleInterface

Evaluates expression in the worker context and returns a JSHandle.

function evaluateHandle(string $expression, mixed $arg = null): JSHandleInterface

waitForEvent()

array

Waits for event to fire and passes its value into the predicate function.

function waitForEvent(string $event, ?callable $predicate = null, array $options = []): array