Package com.microsoft.playwright
Class Page.AddStyleTagOptions
- java.lang.Object
-
- com.microsoft.playwright.Page.AddStyleTagOptions
-
- Enclosing interface:
- Page
public static class Page.AddStyleTagOptions extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description AddStyleTagOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Page.AddStyleTagOptionssetContent(java.lang.String content)Raw CSS content to be injected into frame.Page.AddStyleTagOptionssetPath(java.nio.file.Path path)Path to the CSS file to be injected into frame.Page.AddStyleTagOptionssetUrl(java.lang.String url)URL of the<link>tag.
-
-
-
Field Detail
-
content
public java.lang.String content
Raw CSS content to be injected into frame.
-
path
public java.nio.file.Path path
Path to the CSS file to be injected into frame. Ifpathis a relative path, then it is resolved relative to the current working directory.
-
url
public java.lang.String url
URL of the<link>tag.
-
-
Method Detail
-
setContent
public Page.AddStyleTagOptions setContent(java.lang.String content)
Raw CSS content to be injected into frame.
-
setPath
public Page.AddStyleTagOptions setPath(java.nio.file.Path path)
Path to the CSS file to be injected into frame. Ifpathis a relative path, then it is resolved relative to the current working directory.
-
setUrl
public Page.AddStyleTagOptions setUrl(java.lang.String url)
URL of the<link>tag.
-
-