class Playwright::Browser::NewContextOptions
- Playwright::Browser::NewContextOptions
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
playwright/browser.crConstructors
- .new(pull : JSON::PullParser)
- .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)
Instance Method Summary
- #accept_downloads : Bool?
- #accept_downloads=(accept_downloads : Bool?)
- #bypass_csp : Bool?
- #bypass_csp=(bypass_csp : Bool?)
- #color_scheme : ColorScheme?
- #color_scheme=(color_scheme : ColorScheme?)
- #device_scale_factor : Int32?
- #device_scale_factor=(device_scale_factor : Int32?)
- #extra_http_headers : Hash(String, String)?
- #extra_http_headers=(extra_http_headers : Hash(String, String)?)
- #geolocation : Geolocation?
- #geolocation=(geolocation : Geolocation?)
- #has_touch : Bool?
- #has_touch=(has_touch : Bool?)
- #http_credentials : BrowserContext::HTTPCredentials?
- #http_credentials=(http_credentials : BrowserContext::HTTPCredentials?)
- #ignore_https_errors : Bool?
- #ignore_https_errors=(ignore_https_errors : Bool?)
- #is_mobile : Bool?
- #is_mobile=(is_mobile : Bool?)
- #java_script_enabled : Bool?
- #java_script_enabled=(java_script_enabled : Bool?)
- #locale : String?
- #locale=(locale : String?)
- #logger : Logger?
- #logger=(logger : Logger?)
- #offline : Bool?
- #offline=(offline : Bool?)
- #permissions : Array(String)?
- #permissions=(permissions : Array(String)?)
- #proxy : Proxy?
- #proxy=(proxy : Proxy?)
- #record_har : RecordHar?
- #record_har=(record_har : RecordHar?)
- #record_video : RecordVideo?
- #record_video=(record_video : RecordVideo?)
- #storage_state : BrowserContext::StorageState?
- #storage_state=(storage_state : BrowserContext::StorageState?)
- #storage_state_path : Path?
- #storage_state_path=(storage_state_path : Path?)
- #timezone_id : String?
- #timezone_id=(timezone_id : String?)
- #user_agent : String?
- #user_agent=(user_agent : String?)
- #viewport : Page::ViewPort?
- #viewport=(viewport : Page::ViewPort?)
- #with_storage_state(path : Path)
- #with_storage_state(state : BrowserContext::StorageState)
Constructor Detail
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)
#