puppeteer/new-docs/puppeteer.elementhandle._eval.md

25 lines
665 B
Markdown
Raw Normal View History

<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [puppeteer](./puppeteer.md) &gt; [ElementHandle](./puppeteer.elementhandle.md) &gt; [$eval](./puppeteer.elementhandle._eval.md)
## ElementHandle.$eval() method
<b>Signature:</b>
```typescript
$eval<ReturnType extends any>(selector: string, pageFunction: Function | string, ...args: unknown[]): Promise<ReturnType>;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| selector | string | |
| pageFunction | Function \| string | |
| args | unknown\[\] | |
<b>Returns:</b>
Promise&lt;ReturnType&gt;