Method: Selenium::WebDriver::Options#add_option
- Defined in:
- lib/selenium/webdriver/common/options.rb
permalink #add_option(name, value = nil) ⇒ Object
Add a new option not yet handled by bindings.
89 90 91 92 |
# File 'lib/selenium/webdriver/common/options.rb', line 89 def add_option(name, value = nil) name, value = name.first if value.nil? && name.is_a?(Hash) @options[name] = value end |