Class: Selenium::WebDriver::Firefox::Service
- Defined in:
 - lib/selenium/webdriver/firefox/service.rb
 
Constant Summary collapse
- DEFAULT_PORT =
 4444- EXECUTABLE =
 'geckodriver'- SHUTDOWN_SUPPORTED =
 false- DRIVER_PATH_ENV_KEY =
 'SE_GECKODRIVER'
Instance Attribute Summary
Attributes inherited from Service
#args, #executable_path, #host, #log, #port
Instance Method Summary collapse
- 
  
    
      #initialize(path: nil, port: nil, log: nil, args: nil)  ⇒ Service 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of Service.
 
Methods inherited from Service
chrome, edge, #env_path, #find_driver_path, firefox, ie, #launch, safari, #shutdown_supported
Constructor Details
#initialize(path: nil, port: nil, log: nil, args: nil) ⇒ Service
Returns a new instance of Service.
      29 30 31 32 33 34 35 36  | 
    
      # File 'lib/selenium/webdriver/firefox/service.rb', line 29 def initialize(path: nil, port: nil, log: nil, args: nil) args ||= [] unless args.any? { |arg| arg.include?('--connect-existing') || arg.include?('--websocket-port') } args << '--websocket-port' args << '0' end super end  |