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) > [$$](./puppeteer.frame.__.md)
|
|
|
|
|
|
|
|
## Frame.$$() method
|
|
|
|
|
2020-07-09 13:22:58 +00:00
|
|
|
This runs `document.querySelectorAll` in the frame and returns the result.
|
|
|
|
|
2020-06-04 14:56:45 +00:00
|
|
|
<b>Signature:</b>
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
$$(selector: string): Promise<ElementHandle[]>;
|
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
|
|
|
| Parameter | Type | Description |
|
|
|
|
| --- | --- | --- |
|
2020-07-09 13:22:58 +00:00
|
|
|
| selector | string | a selector to search for |
|
2020-06-04 14:56:45 +00:00
|
|
|
|
|
|
|
<b>Returns:</b>
|
|
|
|
|
|
|
|
Promise<[ElementHandle](./puppeteer.elementhandle.md)<!-- -->\[\]>
|
|
|
|
|
2020-07-09 13:22:58 +00:00
|
|
|
An array of element handles pointing to the found frame elements.
|
|
|
|
|