Package com.microsoft.playwright
Class Page.AddScriptTagOptions
- java.lang.Object
-
- com.microsoft.playwright.Page.AddScriptTagOptions
-
-
Constructor Summary
Constructors Constructor Description AddScriptTagOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Page.AddScriptTagOptions
setContent(String content)
Raw JavaScript content to be injected into frame.Page.AddScriptTagOptions
setPath(Path path)
Path to the JavaScript file to be injected into frame.Page.AddScriptTagOptions
setType(String type)
Script type.Page.AddScriptTagOptions
setUrl(String url)
URL of a script to be added.
-
-
-
Field Detail
-
content
public String content
Raw JavaScript content to be injected into frame.
-
path
public Path path
Path to the JavaScript file to be injected into frame. Ifpath
is a relative path, then it is resolved relative to the current working directory.
-
type
public String type
Script type. Use 'module' in order to load a JavaScript ES6 module. See script for more details.
-
url
public String url
URL of a script to be added.
-
-
Method Detail
-
setContent
public Page.AddScriptTagOptions setContent(String content)
Raw JavaScript content to be injected into frame.
-
setPath
public Page.AddScriptTagOptions setPath(Path path)
Path to the JavaScript file to be injected into frame. Ifpath
is a relative path, then it is resolved relative to the current working directory.
-
setType
public Page.AddScriptTagOptions setType(String type)
Script type. Use 'module' in order to load a JavaScript ES6 module. See script for more details.
-
setUrl
public Page.AddScriptTagOptions setUrl(String url)
URL of a script to be added.
-
-