puppeteer/new-docs/puppeteer.frame.addscripttag.md

28 lines
716 B
Markdown
Raw Normal View History

<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [puppeteer](./puppeteer.md) &gt; [Frame](./puppeteer.frame.md) &gt; [addScriptTag](./puppeteer.frame.addscripttag.md)
## Frame.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&lt;[ElementHandle](./puppeteer.elementhandle.md)<!-- -->&gt;