[Home](./index.md) > [puppeteer](./puppeteer.md) > [Frame](./puppeteer.frame.md) > [evaluate](./puppeteer.frame.evaluate.md) ## Frame.evaluate() method Signature: ```typescript evaluate(pageFunction: Function | string, ...args: unknown[]): Promise; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | pageFunction | Function \| string | | | args | unknown\[\] | | Returns: Promise<ReturnType>