puppeteer/docs/api/puppeteer.frameaddscripttagoptions.md

889 B

sidebar_label
FrameAddScriptTagOptions

FrameAddScriptTagOptions interface

Signature:

export interface FrameAddScriptTagOptions 

Properties

Property Modifiers Type Description
content? string (Optional) Raw JavaScript content to be injected into the frame.
path? string (Optional) The path to a JavaScript file to be injected into the frame.
type? string (Optional) Set the script's type. Use module in order to load an ES2015 module.
url? string (Optional) the URL of the script to be added.