mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
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>>