Module: Selenium::WebDriver::LocalDriver
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Included In:
| |
Defined in: | rb/lib/selenium/webdriver/common/local_driver.rb |
Instance Method Summary
Instance Method Details
#initialize_local_driver(options, service, url)
# File 'rb/lib/selenium/webdriver/common/local_driver.rb', line 23
def initialize_local_driver(, service, url) raise ArgumentError, "Can't initialize #{self.class} with :url" if url service ||= Service.send(browser) caps = (, service) url = service_url(service) [caps, url] end
#process_options(options, service)
[ GitHub ]# File 'rb/lib/selenium/webdriver/common/local_driver.rb', line 33
def (, service) = Options.send(browser) ||= unless .is_a?( .class) raise ArgumentError, ":options must be an instance of #{ .class}" end service.executable_path ||= begin finder = WebDriver::DriverFinder.new(, service) if .respond_to?(:binary) && finder.browser_path? .binary = finder.browser_path .browser_version = nil end finder.driver_path end .as_json end