Object
Specification of the desired and/or actual capabilities of the browser that the server is being asked to create.
# File remote/client/src/rb/lib/selenium/webdriver/remote/capabilities.rb, line 53 def chrome(opts = {}) new({ :browser_name => "chrome", :javascript_enabled => true }.merge(opts)) end
# File remote/client/src/rb/lib/selenium/webdriver/remote/capabilities.rb, line 19 def firefox(opts = {}) new({ :browser_name => "firefox", :javascript_enabled => true }.merge(opts)) end
# File remote/client/src/rb/lib/selenium/webdriver/remote/capabilities.rb, line 33 def htmlunit(opts = {}) new({ :browser_name => "htmlunit" }.merge(opts)) end
# File remote/client/src/rb/lib/selenium/webdriver/remote/capabilities.rb, line 26 def internet_explorer(opts = {}) new({ :browser_name => "internet explorer", :platform => :windows }.merge(opts)) end
# File remote/client/src/rb/lib/selenium/webdriver/remote/capabilities.rb, line 46 def iphone(opts = {}) new({ :browser_name => "iphone", :platform => :mac }.merge(opts)) end
@api private
# File remote/client/src/rb/lib/selenium/webdriver/remote/capabilities.rb, line 64 def json_create(data) new( :browser_name => data["browserName"], :version => data["version"], :platform => data["platform"].downcase.to_sym, :javascript_enabled => data["javascriptEnabled"] ) end
@option :browser_name [String] required browser name @option :version [String] required browser version number @option :platform [Symbol] one of :any, :win, :mac, or :x @option :javascript_enabled [Boolean] should the test run with javascript enabled?
@api public
# File remote/client/src/rb/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
Generated with the Darkfish Rdoc Generator 2.