Class Selenium::WebDriver::Remote::Bridge
In: lib/selenium/webdriver/remote/commands.rb
lib/selenium/webdriver/remote/bridge.rb
Parent: Object

Low level bridge to the remote server, through which the rest of the API works.

@api private

Methods

acceptAlert   addCookie   browser   clearElement   click   clickElement   close   command   contextClick   create_session   deleteAllCookies   deleteCookie   dismissAlert   doubleClick   dragElement   driver_extensions   elementEquals   executeAsyncScript   executeScript   findElementByClassName   findElementByCssSelector   findElementById   findElementByLinkText   findElementByName   findElementByPartialLinkText   findElementByTagName   findElementByXpath   findElementsByClassName   findElementsByCssSelector   findElementsById   findElementsByLinkText   findElementsByName   findElementsByPartialLinkText   findElementsByTagName   findElementsByXpath   get   getActiveElement   getAlertText   getAllCookies   getCapabilities   getCurrentUrl   getCurrentWindowHandle   getElementAttribute   getElementLocation   getElementLocationOnceScrolledIntoView   getElementSize   getElementTagName   getElementText   getElementValue   getElementValueOfCssProperty   getPageSource   getScreenshot   getTitle   getVisible   getWindowHandles   goBack   goForward   isElementDisplayed   isElementEnabled   isElementSelected   mouseDown   mouseMoveTo   mouseUp   new   quit   refresh   sendKeysToElement   sendModifierKeyToActiveElement   session_id   setAlertValue   setElementSelected   setImplicitWaitTimeout   setScriptTimeout   setVisible   submitElement   switchToActiveElement   switchToDefaultContent   switchToFrame   switchToWindow   toggleElement  

Included Modules

BridgeHelper

Constants

QUIT_ERRORS = [IOError]

Attributes

capabilities  [R] 
context  [RW] 
http  [RW] 

Public Class methods

Defines a wrapper method for a command, which ultimately calls execute.

@param name [Symbol]

  name of the resulting method

@param url [String]

  a URL template, which can include some arguments, much like the definitions on the server.
  the :session_id parameter is implicitly handled, but the remainder will become required method arguments.

@param verb [Symbol]

  the appropriate http verb, such as :get, :post, or :delete

Initializes the bridge with the given server URL.

@param url [String] url for the remote server @param http_client [Object] an HTTP client instance that implements the same protocol as Http::Default @param desired_capabilities [Capabilities] an instance of Remote::Capabilities describing the capabilities you want

Public Instance methods

navigation

Returns the current session ID.

switchToActiveElement()

Alias for getActiveElement

[Validate]