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