fix: extends ElementHandle to Nodes (#8552)

* fix: extends `ElementHandle` to `Node`s (#8552)
This commit is contained in:
jrandolf
2022-07-06 09:05:37 +02:00
committed by GitHub
parent b49d530d73
commit 5ff205dc8b
93 changed files with 597 additions and 1095 deletions

View File

@@ -41,7 +41,7 @@ class ElementHandle {
hidden?: boolean;
timeout?: number;
}
): Promise<ElementHandle | null>;
): Promise<ElementHandle<Node> | null>;
}
```
@@ -54,7 +54,7 @@ class ElementHandle {
**Returns:**
Promise&lt;[ElementHandle](./puppeteer.elementhandle.md) \| null&gt;
Promise&lt;[ElementHandle](./puppeteer.elementhandle.md)&lt;Node&gt; \| null&gt;
Promise which resolves when element specified by xpath string is added to DOM. Resolves to `null` if waiting for `hidden: true` and xpath is not found in DOM.