puppeteer/new-docs/puppeteer.frame.__eval.md
Jack Franklin 5049b83186
feat(types): add types for page.$$eval (#6139)
* feat(types): add types for `page.$$eval`

* Add new-docs for $$eval

* fix example

* linting
2020-07-03 15:23:51 +01:00

925 B

Home > puppeteer > Frame > $$eval

Frame.$$eval() method

Signature:

$$eval<ReturnType>(selector: string, pageFunction: (elements: Element[], ...args: unknown[]) => ReturnType | Promise<ReturnType>, ...args: SerializableOrJSHandle[]): Promise<WrapElementHandle<ReturnType>>;

Parameters

Parameter Type Description
selector string
pageFunction (elements: Element[], ...args: unknown[]) => ReturnType | Promise<ReturnType>
args SerializableOrJSHandle[]

Returns:

Promise<WrapElementHandle<ReturnType>>