Class: Selenium::WebDriver::Safari::Options
- Inherits:
-
Object
- Object
- Selenium::WebDriver::Safari::Options
- Defined in:
- lib/selenium/webdriver/safari/options.rb
Instance Attribute Summary collapse
-
#automatic_inspection ⇒ Object
Returns the value of attribute automatic_inspection.
-
#automatic_profiling ⇒ Object
Returns the value of attribute automatic_profiling.
Instance Method Summary collapse
- #as_json ⇒ Object private
-
#initialize(**opts) ⇒ Options
constructor
Create a new Options instance for W3C-capable versions of Safari.
Constructor Details
#initialize(**opts) ⇒ Options
Create a new Options instance for W3C-capable versions of Safari.
40 41 42 43 |
# File 'lib/selenium/webdriver/safari/options.rb', line 40 def initialize(**opts) @automatic_inspection = opts.delete(:automatic_inspection) || false @automatic_profiling = opts.delete(:automatic_profiling) || false end |
Instance Attribute Details
#automatic_inspection ⇒ Object
Returns the value of attribute automatic_inspection.
24 25 26 |
# File 'lib/selenium/webdriver/safari/options.rb', line 24 def automatic_inspection @automatic_inspection end |
#automatic_profiling ⇒ Object
Returns the value of attribute automatic_profiling.
24 25 26 |
# File 'lib/selenium/webdriver/safari/options.rb', line 24 def automatic_profiling @automatic_profiling end |
Instance Method Details
#as_json ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
49 50 51 52 53 54 55 56 |
# File 'lib/selenium/webdriver/safari/options.rb', line 49 def as_json(*) opts = {} opts['safari:automaticInspection'] = true if @automatic_inspection opts['safari:automaticProfiling'] = true if @automatic_profiling opts end |