Method: Selenium::WebDriver::Chrome::Service#initialize
- Defined in:
- lib/selenium/webdriver/chrome/service.rb
permalink #initialize(executable_path, port, *extra_args) ⇒ Service
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Service.
53 54 55 56 57 58 59 60 61 |
# File 'lib/selenium/webdriver/chrome/service.rb', line 53 def initialize(executable_path, port, *extra_args) @executable_path = executable_path @host = Platform.localhost @port = Integer(port) raise Error::WebDriverError, "invalid port: #{@port}" if @port < 1 @extra_args = extra_args end |