Latest
method JSHandle.prototype.evaluateHandle
import { JSHandle } from "https://dotland.deno.dev/x/puppeteer@16.2.0/vendor/puppeteer-core/puppeteer/types.d.ts";

Evaluates the given function with the current handle as its first argument.

Type Parameters

Params extends unknown[]
optional
Func extends EvaluateFunc<[this, ...Params]> = EvaluateFunc<[this, ...Params]>

Parameters

pageFunction: Func | string
...args: Params

Returns

Promise<HandleFor<Awaited<ReturnType<Func>>>>