class Selenium::WebDriver::IE::Driver

Driver implementation for Internet Explorer supporting both OSS and W3C dialects of JSON wire protocol. @api private

Constants

EXTENSIONS

Public Class Methods

new(capabilities: nil, options: nil, service: nil, url: nil, **opts) click to toggle source
Calls superclass method Selenium::WebDriver::Driver::new
# File lib/selenium/webdriver/ie/driver.rb, line 32
def initialize(capabilities: nil, options: nil, service: nil, url: nil, **opts)
  raise ArgumentError, "Can't initialize #{self.class} with :url" if url

  caps = process_options(options, capabilities)
  url = service_url(service || Service.ie)
  super(caps: caps, url: url, **opts)
end

Public Instance Methods

browser() click to toggle source
# File lib/selenium/webdriver/ie/driver.rb, line 40
def browser
  :internet_explorer
end

Private Instance Methods

process_options(options, capabilities) click to toggle source
# File lib/selenium/webdriver/ie/driver.rb, line 46
def process_options(options, capabilities)
  if options && !options.is_a?(Options)
    raise ArgumentError, ":options must be an instance of #{Options}"
  elsif options.nil? && capabilities.nil?
    options = Options.new
  end

  super(options, capabilities)
end