Class: Selenium::WebDriver::SeleniumManager Private

Inherits:
Object
  • Object
show all
Defined in:
rb/lib/selenium/webdriver/common/selenium_manager.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Wrapper for getting information from the Selenium Manager binaries. This implementation is still in beta, and may change.

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.bin_pathObject

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.



33
34
35
# File 'rb/lib/selenium/webdriver/common/selenium_manager.rb', line 33

def bin_path
  @bin_path ||= '../../../../../bin'
end

Class Method Details

.binary_paths(*arguments) ⇒ Hash

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 paths to the requested assets.

Parameters:

  • arguments (Array)

    what gets sent to to Selenium Manager binary.

Returns:

  • (Hash)

    paths to the requested assets.



39
40
41
42
43
44
45
# File 'rb/lib/selenium/webdriver/common/selenium_manager.rb', line 39

def binary_paths(*arguments)
  arguments += %w[--language-binding ruby]
  arguments += %w[--output json]
  arguments << '--debug' if WebDriver.logger.debug?

  run(binary, *arguments)
end