puppeteer/new-docs/puppeteer.frameaddscripttagoptions.path.md

19 lines
572 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; [FrameAddScriptTagOptions](./puppeteer.frameaddscripttagoptions.md) &gt; [path](./puppeteer.frameaddscripttagoptions.path.md)
## FrameAddScriptTagOptions.path property
The path to a JavaScript file to be injected into the frame.
<b>Signature:</b>
```typescript
path?: string;
```
## Remarks
If `path` is a relative path, it is resolved relative to the current working directory (`process.cwd()` in Node.js).