Module: Selenium::WebDriver::Chrome

Defined in:
lib/selenium/webdriver/chrome.rb,
lib/selenium/webdriver/chrome/bridge.rb,
lib/selenium/webdriver/chrome/profile.rb,
lib/selenium/webdriver/chrome/service.rb

Defined Under Namespace

Classes: Bridge, Profile, Service

Constant Summary collapse

MISSING_TEXT =
"  Unable to find chromedriver. Please download the server from\n  http://chromedriver.storage.googleapis.com/index.html and place it\n  somewhere on your PATH. More info at https://github.com/SeleniumHQ/selenium/wiki/ChromeDriver.\n".tr("\n", '').freeze

Class Method Summary collapse

Class Method Details

.driver_pathObject



40
41
42
43
44
45
46
47
48
# File 'lib/selenium/webdriver/chrome.rb', line 40

def self.driver_path
  @driver_path ||= begin
    path = Platform.find_binary('chromedriver')
    raise Error::WebDriverError, MISSING_TEXT unless path
    Platform.assert_executable path

    path
  end
end

.driver_path=(path) ⇒ Object



35
36
37
38
# File 'lib/selenium/webdriver/chrome.rb', line 35

def self.driver_path=(path)
  Platform.assert_executable path
  @driver_path = path
end

.pathObject



55
56
57
# File 'lib/selenium/webdriver/chrome.rb', line 55

def self.path
  @path ||= nil
end

.path=(path) ⇒ Object



50
51
52
53
# File 'lib/selenium/webdriver/chrome.rb', line 50

def self.path=(path)
  Platform.assert_executable path
  @path = path
end