mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
28 lines
712 B
Markdown
28 lines
712 B
Markdown
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||
|
|
||
|
[Home](./index.md) > [puppeteer](./puppeteer.md) > [Page](./puppeteer.page.md) > [addScriptTag](./puppeteer.page.addscripttag.md)
|
||
|
|
||
|
## Page.addScriptTag() method
|
||
|
|
||
|
<b>Signature:</b>
|
||
|
|
||
|
```typescript
|
||
|
addScriptTag(options: {
|
||
|
url?: string;
|
||
|
path?: string;
|
||
|
content?: string;
|
||
|
type?: string;
|
||
|
}): Promise<ElementHandle>;
|
||
|
```
|
||
|
|
||
|
## Parameters
|
||
|
|
||
|
| Parameter | Type | Description |
|
||
|
| --- | --- | --- |
|
||
|
| options | { url?: string; path?: string; content?: string; type?: string; } | |
|
||
|
|
||
|
<b>Returns:</b>
|
||
|
|
||
|
Promise<[ElementHandle](./puppeteer.elementhandle.md)<!-- -->>
|
||
|
|