123456789_123456789_123456789_123456789_123456789_

Class: Selenium::WebDriver::Firefox::Service

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
Instance Chain:
Inherits: Selenium::WebDriver::Service
Defined in: rb/lib/selenium/webdriver/firefox/service.rb

Constant Summary

Class Attribute Summary

Class Method Summary

::Selenium::WebDriver::Service - Inherited

.chrome, .edge, .firefox, .ie,
.internet_explorer

Alias for Service.ie.

.microsoftedge

Alias for Service.edge.

.msedge

Alias for Service.edge.

.safari,
.new

End users should use a class method for the desired driver, rather than using this directly.

Instance Attribute Summary

Instance Method Summary

Constructor Details

.new(path: nil, port: nil, log: nil, args: nil) ⇒ Service

[ GitHub ]

  
# File 'rb/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