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