### Home Classes Methods

### In Files

- chrome/src/rb/lib/selenium/webdriver/chrome/bridge.rb

### Parent

Remote::Bridge

### Methods

- ::new
- #browser
- #capabilities
- #deleteCookie
- #driver_extensions
- #findElementByCssSelector
- #findElementsByCssSelector
- #getAllCookies
- #getScreenshot
- #getSpeed
- #quit
- #setImplicitWaitTimeout
- #setSpeed

### Class/Module Index

Quicksearch

- Selenium
- Selenium::WebDriver
- Selenium::WebDriver::BridgeHelper
- Selenium::WebDriver::ChildProcess
- Selenium::WebDriver::ChildProcess::IronRubyProcess
- Selenium::WebDriver::ChildProcess::JRubyProcess
- Selenium::WebDriver::ChildProcess::WindowsProcess
- Selenium::WebDriver::Chrome
- Selenium::WebDriver::Chrome::Bridge
- Selenium::WebDriver::Chrome::CommandExecutor
- Selenium::WebDriver::Chrome::Launcher
- Selenium::WebDriver::Chrome::Launcher::MacOSXLauncher
- Selenium::WebDriver::Chrome::Launcher::UnixLauncher
- Selenium::WebDriver::Chrome::Launcher::WindowsLauncher
- Selenium::WebDriver::Driver
- Selenium::WebDriver::DriverExtensions
- Selenium::WebDriver::DriverExtensions::TakesScreenshot
- Selenium::WebDriver::Element
- Selenium::WebDriver::Error
- Selenium::WebDriver::Error::ElementNotDisplayedError
- Selenium::WebDriver::Error::ElementNotEnabledError
- Selenium::WebDriver::Error::ElementNotSelectableError
- Selenium::WebDriver::Error::ExpectedError
- Selenium::WebDriver::Error::IndexOutOfBoundsError
- Selenium::WebDriver::Error::InvalidCookieDomainError
- Selenium::WebDriver::Error::NoCollectionError
- Selenium::WebDriver::Error::NoScriptResultError
- Selenium::WebDriver::Error::NoStringError
- Selenium::WebDriver::Error::NoStringLengthError
- Selenium::WebDriver::Error::NoStringWrapperError
- Selenium::WebDriver::Error::NoSuchCollectionError
- Selenium::WebDriver::Error::NoSuchDocumentError
- Selenium::WebDriver::Error::NoSuchDriverError
- Selenium::WebDriver::Error::NoSuchElementError
- Selenium::WebDriver::Error::NoSuchFrameError
- Selenium::WebDriver::Error::NoSuchWindowError
- Selenium::WebDriver::Error::NullPointerError
- Selenium::WebDriver::Error::ObsoleteElementError
- Selenium::WebDriver::Error::ServerError
- Selenium::WebDriver::Error::TimeOutError
- Selenium::WebDriver::Error::UnableToSetCookieError
- Selenium::WebDriver::Error::UnexpectedJavascriptError
- Selenium::WebDriver::Error::UnhandledError
- Selenium::WebDriver::Error::UnknownCommandError
- Selenium::WebDriver::Error::UnknownScriptResultError
- Selenium::WebDriver::Error::UnsupportedOperationError
- Selenium::WebDriver::Error::WebDriverError
- Selenium::WebDriver::FileReaper
- Selenium::WebDriver::Find
- Selenium::WebDriver::Firefox
- Selenium::WebDriver::Firefox::Binary
- Selenium::WebDriver::Firefox::Bridge
- Selenium::WebDriver::Firefox::Launcher
- Selenium::WebDriver::Firefox::Profile
- Selenium::WebDriver::Firefox::ProfilesIni
- Selenium::WebDriver::Firefox::Util
- Selenium::WebDriver::IE
- Selenium::WebDriver::IE::Bridge
- Selenium::WebDriver::IE::Kernel32
- Selenium::WebDriver::IE::Lib
- Selenium::WebDriver::IE::Util
- Selenium::WebDriver::Keys
- Selenium::WebDriver::Navigation
- Selenium::WebDriver::Options
- Selenium::WebDriver::Platform
- Selenium::WebDriver::Remote
- Selenium::WebDriver::Remote::Bridge
- Selenium::WebDriver::Remote::Capabilities
- Selenium::WebDriver::Remote::Http
- Selenium::WebDriver::Remote::Http::Common
- Selenium::WebDriver::Remote::Http::Curb
- Selenium::WebDriver::Remote::Http::Default
- Selenium::WebDriver::Remote::Response
- Selenium::WebDriver::TargetLocator
- Selenium::WebDriver::Timeouts
- Dir
- SocketError
- String

No matching classes.

# Selenium::WebDriver::Chrome::Bridge

@private

### Public Class Methods

new() click to toggle source

    # File chrome/src/rb/lib/selenium/webdriver/chrome/bridge.rb, line 8
    def initialize
      @executor = CommandExecutor.new

      @launcher = Launcher.launcher
      @launcher.launch(@executor.uri)
    end

### Public Instance Methods

browser() click to toggle source

    # File chrome/src/rb/lib/selenium/webdriver/chrome/bridge.rb, line 15
    def browser
      :chrome
    end

capabilities() click to toggle source

    # File chrome/src/rb/lib/selenium/webdriver/chrome/bridge.rb, line 23
    def capabilities
      @capabilities ||= Remote::Capabilities.chrome
    end

deleteCookie(name) click to toggle source

    # File chrome/src/rb/lib/selenium/webdriver/chrome/bridge.rb, line 61
    def deleteCookie(name)
      execute :deleteCookie, :name => name
    end

driver_extensions() click to toggle source

    # File chrome/src/rb/lib/selenium/webdriver/chrome/bridge.rb, line 19
    def driver_extensions
      [DriverExtensions::TakesScreenshot]
    end

findElementByCssSelector(parent, selector) click to toggle source

    # File chrome/src/rb/lib/selenium/webdriver/chrome/bridge.rb, line 49
    def findElementByCssSelector(parent, selector)
      find_element_by 'css', selector, parent
    end

findElementsByCssSelector(parent, selector) click to toggle source

    # File chrome/src/rb/lib/selenium/webdriver/chrome/bridge.rb, line 53
    def findElementsByCssSelector(parent, selector)
      find_elements_by 'css', selector, parent
    end

getAllCookies() click to toggle source

    # File chrome/src/rb/lib/selenium/webdriver/chrome/bridge.rb, line 57
    def getAllCookies
      execute :getCookies
    end

getScreenshot() click to toggle source

    # File chrome/src/rb/lib/selenium/webdriver/chrome/bridge.rb, line 37
    def getScreenshot
      execute :screenshot
    end

getSpeed() click to toggle source

    # File chrome/src/rb/lib/selenium/webdriver/chrome/bridge.rb, line 45
    def getSpeed
      @speed
    end

quit() click to toggle source

    # File chrome/src/rb/lib/selenium/webdriver/chrome/bridge.rb, line 27
    def quit
      begin
        super
      rescue IOError
      end

      @executor.close
      @launcher.quit
    end

setImplicitWaitTimeout(milliseconds) click to toggle source

    # File chrome/src/rb/lib/selenium/webdriver/chrome/bridge.rb, line 65
    def setImplicitWaitTimeout(milliseconds)
      execute :implicitlyWait, :ms => milliseconds
    end

setSpeed(value) click to toggle source

    # File chrome/src/rb/lib/selenium/webdriver/chrome/bridge.rb, line 41
    def setSpeed(value)
      @speed = value
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.