5049b83186
* feat(types): add types for `page.$$eval` * Add new-docs for $$eval * fix example * linting
925 B
925 B
Home > puppeteer > Frame > $$eval
Frame.$$eval() method
Signature:
$$eval<ReturnType>(selector: string, pageFunction: (elements: Element[], ...args: unknown[]) => ReturnType | Promise<ReturnType>, ...args: SerializableOrJSHandle[]): Promise<WrapElementHandle<ReturnType>>;
Parameters
Parameter | Type | Description |
---|---|---|
selector | string | |
pageFunction | (elements: Element[], ...args: unknown[]) => ReturnType | Promise<ReturnType> | |
args | SerializableOrJSHandle[] |
Returns:
Promise<WrapElementHandle<ReturnType>>