import { Frame } from "https://deno.land/x/puppeteer@14.1.1/vendor/puppeteer-core/puppeteer/common/FrameManager.d.ts";
Examples
Example 1
Example 1
const searchValue = await frame.$eval('#search', el => el.value);
Parameters
pageFunction: (element: any, ...args: unknown[]) => ReturnType | Promise<ReturnType>
- the function to be evaluated in the frame's context
...args: SerializableOrJSHandle[]
- additional arguments to pass to
pageFunction
Returns
Promise<WrapElementHandle<ReturnType>>