Class: Selenium::WebDriver::Chrome::Service
| Relationships & Source Files | |
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
|
|
|
Instance Chain:
|
|
| Inherits: |
Selenium::WebDriver::Service
|
| Defined in: | rb/lib/selenium/webdriver/chrome/service.rb |
Constant Summary
-
DEFAULT_PORT =
# File 'rb/lib/selenium/webdriver/chrome/service.rb', line 249515 -
DRIVER_PATH_ENV_KEY =
# File 'rb/lib/selenium/webdriver/chrome/service.rb', line 27'SE_CHROMEDRIVER' -
EXECUTABLE =
# File 'rb/lib/selenium/webdriver/chrome/service.rb', line 25'chromedriver' -
SHUTDOWN_SUPPORTED =
# File 'rb/lib/selenium/webdriver/chrome/service.rb', line 26true
Class Attribute Summary
::Selenium::WebDriver::Service - Inherited
Class Method Summary
- .new(args: nil) ⇒ Service constructor
::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
::Selenium::WebDriver::Service - Inherited
| #args, #executable_path, | |
| #extra_args | Alias for Service#args. |
| #host, #log, #port | |
Instance Method Summary
::Selenium::WebDriver::Service - Inherited
Constructor Details
.new(args: nil) ⇒ Service
# File 'rb/lib/selenium/webdriver/chrome/service.rb', line 29
def initialize(args: nil, **) if ENV.key?('SE_DEBUG') args = Array(args.dup) warn_driver_log_override if args.reject! { |arg| arg.include?('log-level') || arg.include?('silent') } args << '--verbose' end super end
Instance Method Details
#log
[ GitHub ]# File 'rb/lib/selenium/webdriver/chrome/service.rb', line 39
def log return @log unless @log.is_a? String @args << "--log-path=#{@log}" @log = nil end