chore: refactor FrameManager and fix docs (#8770)

This commit is contained in:
jrandolf
2022-08-10 23:34:29 +02:00
committed by GitHub
parent 2580347b50
commit d6a88a9768
67 changed files with 1312 additions and 1255 deletions

View File

@@ -4,7 +4,7 @@ sidebar_label: Frame.$$
# Frame.$$() method
This runs `document.querySelectorAll` in the frame and returns the result.
Queries the frame for all elements matching the given selector.
**Signature:**
@@ -18,12 +18,12 @@ class Frame {
## Parameters
| Parameter | Type | Description |
| --------- | -------- | ------------------------ |
| selector | Selector | a selector to search for |
| Parameter | Type | Description |
| --------- | -------- | -------------------------- |
| selector | Selector | The selector to query for. |
**Returns:**
Promise<Array<[ElementHandle](./puppeteer.elementhandle.md)<[NodeFor](./puppeteer.nodefor.md)<Selector>>>>
An array of element handles pointing to the found frame elements.
An array of [element handles](./puppeteer.elementhandle.md) that point to elements matching the given selector.