import { Frame } from "https://deno.land/x/pptr@1.2.0/src/FrameManager.ts";
Examples
Example 1
Example 1
const divsCounts = await frame.$$eval('div', divs => divs.length);
Parameters
pageFunction: (elements: Element[], ...args: unknown[]) => ReturnType | Promise<ReturnType>
- the function to be evaluated in the frame's context
...args: SerializableOrJSHandle[]
- additional arguments to pass to
pageFuncton
Returns
Promise<WrapElementHandle<ReturnType>>