Class: Selenium::WebDriver::Edge::Service
- Defined in:
- lib/selenium/webdriver/edge/service.rb
Constant Summary collapse
- DEFAULT_PORT =
9515- EXECUTABLE =
'msedgedriver'- SHUTDOWN_SUPPORTED =
true- DRIVER_PATH_ENV_KEY =
'SE_EDGEDRIVER'
Instance Attribute Summary
Attributes inherited from Service
#args, #executable_path, #host, #port
Instance Method Summary collapse
-
#initialize(args: nil) ⇒ Service
constructor
A new instance of Service.
- #log ⇒ Object
Methods inherited from Service
chrome, edge, #env_path, #find_driver_path, firefox, ie, #launch, safari, #shutdown_supported
Constructor Details
#initialize(args: nil) ⇒ Service
Returns a new instance of Service.
29 30 31 32 33 34 35 36 37 |
# File 'lib/selenium/webdriver/edge/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 ⇒ Object
39 40 41 42 43 44 |
# File 'lib/selenium/webdriver/edge/service.rb', line 39 def log return @log unless @log.is_a? String @args << "--log-path=#{@log}" @log = nil end |