Method: Selenium::WebDriver::Remote::Capabilities#initialize
- Defined in:
- lib/selenium/webdriver/remote/capabilities.rb
#initialize(opts = {}) ⇒ Capabilities
Returns a new instance of Capabilities.
82 83 84 85 86 87 |
# File 'lib/selenium/webdriver/remote/capabilities.rb', line 82 def initialize(opts = {}) @browser_name = opts[:browser_name] || "" @version = opts[:version] || "" @platform = opts[:platform] || :any @javascript_enabled = opts[:javascript_enabled] || false end |