Method: Selenium::WebDriver::Remote::Capabilities#to_json

Defined in:
lib/selenium/webdriver/remote/capabilities.rb

#to_json(*args) ⇒ 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.

[View source]

93
94
95
96
97
98
99
100
# File 'lib/selenium/webdriver/remote/capabilities.rb', line 93

def to_json(*args)
  {
    "browserName"       => browser_name,
    "version"           => version,
    "platform"          => platform.to_s.upcase,
    "javascriptEnabled" => javascript?
  }.to_json(*args)
end