Parent

Included Modules

Class/Module Index [+]

Quicksearch

Selenium::WebDriver::Chrome::Launcher

@private

Attributes

pid[R]

Public Class Methods

binary_path() click to toggle source
# File chrome/src/rb/lib/selenium/webdriver/chrome/launcher.rb, line 26
def self.binary_path
  @binary_path ||= (
    path = possible_paths.find { |f| File.exist?(f) }
    path || raise(Error::WebDriverError, "Could not find Chrome binary. Make sure Chrome is installed (OS: #{Platform.os})")
  )
end
launcher() click to toggle source
# File chrome/src/rb/lib/selenium/webdriver/chrome/launcher.rb, line 11
def self.launcher
  launcher =  case Platform.os
              when :windows
                WindowsLauncher.new
              when :macosx
                MacOSXLauncher.new
              when :unix, :linux
                UnixLauncher.new
              else
                raise "unknown OS: #{Platform.os}"
              end

  launcher
end

Public Instance Methods

launch(server_url) click to toggle source
# File chrome/src/rb/lib/selenium/webdriver/chrome/launcher.rb, line 33
def launch(server_url)
  create_extension
  create_profile
  launch_chrome server_url

  pid
end
quit() click to toggle source
# File chrome/src/rb/lib/selenium/webdriver/chrome/launcher.rb, line 41
def quit
  @process.ensure_death
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.