Skip to main content
Version: Next

Frame.$eval() method

Signature:

class Frame {$eval<Params extends unknown[], Func extends EvaluateFunc<[Element, ...Params]> = EvaluateFunc<[
Element,
...Params
]>>(selector: string, pageFunction: Func | string, ...args: Params): Promise<Awaited<ReturnType<Func>>>;}

Parameters

ParameterTypeDescription
selectorstring
pageFunctionFunc | string
argsParams

Returns:

Promise<Awaited<ReturnType<Func>>>