mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
fix: extends ElementHandle to Nodes (#8552)
* fix: extends `ElementHandle` to `Node`s (#8552)
This commit is contained in:
@@ -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<[ElementHandle](./puppeteer.elementhandle.md)>
|
||||
Promise<[ElementHandle](./puppeteer.elementhandle.md)<HTMLScriptElement>>
|
||||
|
||||
Promise which resolves to the added tag when the script's onload fires or when the script content was injected into frame.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user