Class: Selenium::WebDriver::Safari::Options
- Inherits:
-
WebDriver::Options
- Object
- WebDriver::Options
- Selenium::WebDriver::Safari::Options
- Defined in:
- lib/selenium/webdriver/safari/options.rb
Constant Summary collapse
- CAPABILITIES =
{automatic_inspection: 'safari:automaticInspection', automatic_profiling: 'safari:automaticProfiling'}.freeze
- BROWSER =
Selenium::WebDriver::Safari.technology_preview? ? 'Safari Technology Preview' : 'safari'
Instance Attribute Summary collapse
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options.
24 25 26 |
# File 'lib/selenium/webdriver/safari/options.rb', line 24 def end |
Instance Method Details
#add_option(name, value = nil) ⇒ Object
31 32 33 34 35 36 |
# File 'lib/selenium/webdriver/safari/options.rb', line 31 def add_option(name, value = nil) key = name.is_a?(Hash) ? name.keys.first : name raise ArgumentError, 'Safari does not support options that are not namespaced' unless key.to_s.include?(':') super end |
#as_json ⇒ Object
38 39 40 41 |
# File 'lib/selenium/webdriver/safari/options.rb', line 38 def as_json(*) [:browser_name] = Safari.technology_preview? ? 'Safari Technology Preview' : 'safari' super end |