[Home](./index.md) > [puppeteer](./puppeteer.md) > [Frame](./puppeteer.frame.md) > [$$eval](./puppeteer.frame.__eval.md) ## Frame.$$eval() method Signature: ```typescript $$eval(selector: string, pageFunction: (elements: Element[], ...args: unknown[]) => ReturnType | Promise, ...args: SerializableOrJSHandle[]): Promise>; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | selector | string | | | pageFunction | (elements: Element\[\], ...args: unknown\[\]) => ReturnType \| Promise<ReturnType> | | | args | [SerializableOrJSHandle](./puppeteer.serializableorjshandle.md)\[\] | | Returns: Promise<[WrapElementHandle](./puppeteer.wrapelementhandle.md)<ReturnType>>