class Playwright::Page::AddScriptTagParams
- Playwright::Page::AddScriptTagParams
- 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, type : Nil | String = nil)
Instance Method Summary
-
#content : String | Nil
Raw JavaScript content to be injected into frame.
-
#content=(content : String | Nil)
Raw JavaScript content to be injected into frame.
-
#path : String | Nil
Path to the JavaScript file to be injected into frame.
-
#path=(path : String | Nil)
Path to the JavaScript file to be injected into frame.
-
#type : String | Nil
Script type.
-
#type=(type : String | Nil)
Script type.
-
#url : String | Nil
URL of a script to be added.
-
#url=(url : String | Nil)
URL of a script to be added.
Constructor Detail
Instance Method Detail
Path to the JavaScript file to be injected into frame. If #path
is a relative path, then it is resolved relative to the current working directory.
Path to the JavaScript file to be injected into frame. If #path
is a relative path, then it is resolved relative to the current working directory.
Script type. Use 'module' in order to load a Javascript ES6 module. See script for more details.
Script type. Use 'module' in order to load a Javascript ES6 module. See script for more details.