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

@@ -16,7 +16,7 @@ class Page {
content?: string;
type?: string;
id?: string;
}): Promise<ElementHandle>;
}): Promise<ElementHandle<HTMLScriptElement>>;
}
```
@@ -28,7 +28,7 @@ class Page {
**Returns:**
Promise&lt;[ElementHandle](./puppeteer.elementhandle.md)&gt;
Promise&lt;[ElementHandle](./puppeteer.elementhandle.md)&lt;HTMLScriptElement&gt;&gt;
Promise which resolves to the added tag when the script's onload fires or when the script content was injected into frame.