2020-06-04 14:56:45 +00:00
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home ](./index.md ) > [puppeteer ](./puppeteer.md ) > [Frame ](./puppeteer.frame.md ) > [evaluate ](./puppeteer.frame.evaluate.md )
## Frame.evaluate() method
< b > Signature:< / b >
```typescript
2020-07-10 10:52:13 +00:00
evaluate< T extends EvaluateFn > (pageFunction: T, ...args: SerializableOrJSHandle[]): Promise< UnwrapPromiseLike < EvaluateFnReturnType < T > >>;
2020-06-04 14:56:45 +00:00
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
2020-07-10 10:52:13 +00:00
| pageFunction | T | a function that is run within the frame |
| args | [SerializableOrJSHandle ](./puppeteer.serializableorjshandle.md )<!-- --> \[\] | arguments to be passed to the pageFunction |
2020-06-04 14:56:45 +00:00
< b > Returns:< / b >
2020-07-10 10:52:13 +00:00
Promise< [UnwrapPromiseLike](./puppeteer.unwrappromiselike.md)<!-- --> < [EvaluateFnReturnType](./puppeteer.evaluatefnreturntype.md)<!-- --> < T> > >
2020-06-04 14:56:45 +00:00
2020-07-09 13:22:58 +00:00
## Remarks
This method behaves identically to [Page.evaluate() ](./puppeteer.page.evaluate.md ) except it's run within the context of the `frame` <!-- --> , rather than the entire page.