class Playwright::Page::AddStyleTagParams
- Playwright::Page::AddStyleTagParams
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
playwright/page.crConstructors
- .new(pull : JSON::PullParser)
- .new(url : Nil | String = nil, path : Nil | String = nil, content : Nil | String = nil)
Instance Method Summary
-
#content : String | Nil
Raw CSS content to be injected into frame.
-
#content=(content : String | Nil)
Raw CSS content to be injected into frame.
-
#path : String | Nil
Path to the CSS file to be injected into frame.
-
#path=(path : String | Nil)
Path to the CSS file to be injected into frame.
-
#url : String | Nil
URL of the
<link>
tag. -
#url=(url : String | Nil)
URL of the
<link>
tag.
Constructor Detail
Instance Method Detail
def path : String | Nil
#
Path to the CSS file to be injected into frame. If #path
is a relative path, then it is resolved relative to the current working directory.