# 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
# 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
Generated with the Darkfish Rdoc Generator 2.