Class/Module Index [+]

Quicksearch

Selenium::WebDriver::Chrome::Launcher::WindowsLauncher

Public Class Methods

possible_paths() click to toggle source
# File chrome/src/rb/lib/selenium/webdriver/chrome/launcher.rb, line 103
def self.possible_paths
  [
    registry_path,
    "#{ENV['USERPROFILE']}\\Local Settings\\Application Data\\Google\\Chrome\\Application\\chrome.exe",
    "#{ENV['USERPROFILE']}\\AppData\\Local\\Google\\Chrome\\Application\\chrome.exe",
    "#{Platform.home}\\Local Settings\\Application Data\\Google\\Chrome\\Application\\chrome.exe",
    "#{Platform.home}\\AppData\\Local\\Google\\Chrome\\Application\\chrome.exe",
  ].compact
end
registry_path() click to toggle source
# File chrome/src/rb/lib/selenium/webdriver/chrome/launcher.rb, line 113
def self.registry_path
  require "win32/registry"

  reg = Win32::Registry::HKEY_LOCAL_MACHINE.open("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\App Paths\\chrome.exe")
  reg[""]
rescue LoadError
  # older JRuby and IronRuby does not have win32/registry
  nil
rescue Win32::Registry::Error
  nil
end

Public Instance Methods

linked_lib_path() click to toggle source
# File chrome/src/rb/lib/selenium/webdriver/chrome/launcher.rb, line 125
def linked_lib_path
  # TODO: x64
  @linked_lib_path ||= "#{WebDriver.root}/chrome/prebuilt/Win32/Release/npchromedriver.dll"
end
quit() click to toggle source
# File chrome/src/rb/lib/selenium/webdriver/chrome/launcher.rb, line 130
def quit
  # looks like we need a kill right away on Windows + MRI
  @process.kill if Platform.engine == :ruby
  super
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.