Class: Selenium::WebDriver::Safari::Options
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
|
|
Instance Chain:
|
|
Inherits: |
Selenium::WebDriver::Options
|
Defined in: | rb/lib/selenium/webdriver/safari/options.rb |
Constant Summary
-
BROWSER =
# File 'rb/lib/selenium/webdriver/safari/options.rb', line 29Selenium::WebDriver::Safari.technology_preview? ? 'Safari Technology Preview' : 'safari'
-
CAPABILITIES =
{automatic_inspection: 'safari:automaticInspection', automatic_profiling: 'safari:automaticProfiling'}.freeze
::Selenium::WebDriver::Options
- Inherited
Class Attribute Summary
::Selenium::WebDriver::Options
- Inherited
Class Method Summary
::Selenium::WebDriver::Options
- Inherited
.chrome, .edge, .firefox, .ie, | |
.internet_explorer | Alias for Options.ie. |
.microsoftedge | Alias for Options.edge. |
.new, .safari, .set_capabilities |
Instance Attribute Summary
Instance Method Summary
::Selenium::WebDriver::Options
- Inherited
#==, | |
#add_option | Add a new option not yet handled by bindings. |
#eql? | Alias for Options#==. |
#camel_case, #camelize?, #convert_json_key, #generate_as_json, #process_browser_options, #process_json_hash, #process_w3c_options, #w3c?, #as_json |
Constructor Details
This class inherits a constructor from Selenium::WebDriver::Options
Instance Attribute Details
#options (rw)
[ GitHub ]# File 'rb/lib/selenium/webdriver/safari/options.rb', line 24
attr_accessor :
Instance Method Details
#add_option(name, value = nil)
# File 'rb/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
[ GitHub ]# File 'rb/lib/selenium/webdriver/safari/options.rb', line 38
def as_json(*) @options[:browser_name] = Safari.technology_preview? ? 'Safari Technology Preview' : 'safari' super end