class Playwright::Page::AddScriptTagParams

Included Modules

Defined in:

playwright/page.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(url : Nil | String = nil, path : Nil | String = nil, content : Nil | String = nil, type : Nil | String = nil) #

[View source]

Instance Method Detail

def content : String | Nil #

Raw JavaScript content to be injected into frame.


[View source]
def content=(content : String | Nil) #

Raw JavaScript content to be injected into frame.


[View source]
def path : String | Nil #

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.


[View source]
def path=(path : String | Nil) #

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.


[View source]
def type : String | Nil #

Script type. Use 'module' in order to load a Javascript ES6 module. See script for more details.


[View source]
def type=(type : String | Nil) #

Script type. Use 'module' in order to load a Javascript ES6 module. See script for more details.


[View source]
def url : String | Nil #

URL of a script to be added.


[View source]
def url=(url : String | Nil) #

URL of a script to be added.


[View source]