class Playwright::Browser::NewPageOptions

Included Modules

Defined in:

playwright/browser.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]
def self.new(accept_downloads = nil, ignore_https_errors = nil, bypass_csp = nil, viewport = nil, user_agent = nil, device_scale_factor = nil, is_mobile = nil, has_touch = nil, java_script_enabled = nil, timezone_id = nil, geolocation = nil, locale = nil, permissions = nil, extra_http_headers = nil, offline = nil, http_credentials = nil, color_scheme = nil, logger = nil, record_har = nil, record_video = nil, proxy = nil, storage_state = nil) #

[View source]

Instance Method Detail

def accept_downloads : Bool? #

[View source]
def accept_downloads=(accept_downloads : Bool?) #

[View source]
def bypass_csp : Bool? #

[View source]
def bypass_csp=(bypass_csp : Bool?) #

[View source]
def color_scheme : ColorScheme? #

[View source]
def color_scheme=(color_scheme : ColorScheme?) #

[View source]
def device_scale_factor : Int32? #

[View source]
def device_scale_factor=(device_scale_factor : Int32?) #

[View source]
def extra_http_headers : Hash(String, String)? #

[View source]
def extra_http_headers=(extra_http_headers : Hash(String, String)?) #

[View source]
def geolocation : Geolocation? #

[View source]
def geolocation=(geolocation : Geolocation?) #

[View source]
def has_touch : Bool? #

[View source]
def has_touch=(has_touch : Bool?) #

[View source]
def http_credentials : BrowserContext::HTTPCredentials? #

[View source]
def http_credentials=(http_credentials : BrowserContext::HTTPCredentials?) #

[View source]
def ignore_https_errors : Bool? #

[View source]
def ignore_https_errors=(ignore_https_errors : Bool?) #

[View source]
def is_mobile : Bool? #

[View source]
def is_mobile=(is_mobile : Bool?) #

[View source]
def java_script_enabled : Bool? #

[View source]
def java_script_enabled=(java_script_enabled : Bool?) #

[View source]
def locale : String? #

[View source]
def locale=(locale : String?) #

[View source]
def logger : Logger? #

[View source]
def logger=(logger : Logger?) #

[View source]
def offline : Bool? #

[View source]
def offline=(offline : Bool?) #

[View source]
def permissions : Array(String)? #

[View source]
def permissions=(permissions : Array(String)?) #

[View source]
def proxy : Proxy? #

[View source]
def proxy=(proxy : Proxy?) #

[View source]
def record_har : RecordHar? #

[View source]
def record_har=(record_har : RecordHar?) #

[View source]
def record_video : RecordVideo? #

[View source]
def record_video=(record_video : RecordVideo?) #

[View source]
def storage_state : BrowserContext::StorageState? #

[View source]
def storage_state=(storage_state : BrowserContext::StorageState?) #

[View source]
def storage_state_path : Path? #

[View source]
def storage_state_path=(storage_state_path : Path?) #

[View source]
def timezone_id : String? #

[View source]
def timezone_id=(timezone_id : String?) #

[View source]
def user_agent : String? #

[View source]
def user_agent=(user_agent : String?) #

[View source]
def viewport : Page::ViewPort? #

[View source]
def viewport=(viewport : Page::ViewPort?) #

[View source]
def with_storage_state(path : Path) #

[View source]
def with_storage_state(state : BrowserContext::StorageState) #

[View source]