class Selenium::WebDriver::Chrome::Service
@api private
Constants
- DEFAULT_PORT
Private Instance Methods
cannot_connect_error_text()
click to toggle source
# File lib/selenium/webdriver/chrome/service.rb, line 42 def cannot_connect_error_text "unable to connect to chromedriver #{@host}:#{@port}" end
extract_service_args(driver_opts)
click to toggle source
Calls superclass method
Selenium::WebDriver::Service#extract_service_args
# File lib/selenium/webdriver/chrome/service.rb, line 46 def extract_service_args(driver_opts) driver_args = super driver_args << "--log-path=#{driver_opts.delete(:log_path)}" if driver_opts.key?(:log_path) driver_args << "--url-base=#{driver_opts.delete(:url_base)}" if driver_opts.key?(:url_base) driver_args << "--port-server=#{driver_opts.delete(:port_server)}" if driver_opts.key?(:port_server) driver_args << "--whitelisted-ips=#{driver_opts.delete(:whitelisted_ips)}" if driver_opts.key?(:whitelisted_ips) driver_args << "--verbose" if driver_opts.key?(:verbose) driver_args << "--silent" if driver_opts.key?(:silent) driver_args end
start_process()
click to toggle source
# File lib/selenium/webdriver/chrome/service.rb, line 36 def start_process @process = build_process(@executable_path, "--port=#{@port}", *@extra_args) @process.leader = true unless Platform.windows? @process.start end