Skip to content

Latest commit

 

History

History
24 lines (15 loc) · 925 Bytes

puppeteer.frame.__eval.md

File metadata and controls

24 lines (15 loc) · 925 Bytes

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>>