puppeteer/docs/api/puppeteer.frameaddscripttagoptions.path.md

20 lines
375 B
Markdown
Raw Normal View History

2022-07-05 13:41:43 +00:00
---
sidebar_label: FrameAddScriptTagOptions.path
---
# FrameAddScriptTagOptions.path property
2022-09-01 15:09:57 +00:00
Path to a JavaScript file to be injected into the frame.
2022-07-05 13:41:43 +00:00
#### Signature:
2022-07-05 13:41:43 +00:00
```typescript
interface FrameAddScriptTagOptions {
path?: string;
}
```
## Remarks
If `path` is a relative path, it is resolved relative to the current working directory (`process.cwd()` in Node.js).