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