Package com.microsoft.playwright
Class Frame.AddScriptTagOptions
- java.lang.Object
-
- com.microsoft.playwright.Frame.AddScriptTagOptions
-
- Enclosing interface:
- Frame
public static class Frame.AddScriptTagOptions extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description AddScriptTagOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Frame.AddScriptTagOptionssetContent(java.lang.String content)Raw JavaScript content to be injected into frame.Frame.AddScriptTagOptionssetPath(java.nio.file.Path path)Path to the JavaScript file to be injected into frame.Frame.AddScriptTagOptionssetType(java.lang.String type)Script type.Frame.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 Frame.AddScriptTagOptions setContent(java.lang.String content)
Raw JavaScript content to be injected into frame.
-
setPath
public Frame.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 Frame.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 Frame.AddScriptTagOptions setUrl(java.lang.String url)
URL of a script to be added.
-
-