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

@api private

Methods

acceptAlert   addCookie   browser   clearElement   clearLocalStorage   clearSessionStorage   click   clickElement   close   command   contextClick   create_session   deleteAllCookies   deleteCookie   dismissAlert   doubleClick   dragElement   driver_extensions   elementEquals   executeAsyncScript   executeScript   find_element_by   find_elements_by   get   getActiveElement   getAlert   getAlertText   getAllCookies   getAvailableLogTypes   getCapabilities   getCurrentUrl   getCurrentWindowHandle   getElementAttribute   getElementLocation   getElementLocationOnceScrolledIntoView   getElementSize   getElementTagName   getElementText   getElementValue   getElementValueOfCssProperty   getLocalStorageItem   getLocalStorageKeys   getLocalStorageSize   getLocation   getLog   getPageSource   getScreenshot   getSessionStorageItem   getSessionStorageKeys   getSessionStorageSize   getTitle   getVisible   getWindowHandles   getWindowPosition   getWindowSize   goBack   goForward   isBrowserOnline   isElementDisplayed   isElementEnabled   isElementSelected   maximizeWindow   mouseDown   mouseMoveTo   mouseUp   new   quit   refresh   removeLocalStorageItem   removeSessionStorageItem   sendKeysToActiveElement   sendKeysToElement   session_id   setAlertValue   setBrowserOnline   setImplicitWaitTimeout   setLocalStorageItem   setLocation   setScriptTimeout   setSessionStorageItem   setTimeout   setVisible   setWindowPosition   setWindowSize   submitElement   switchToActiveElement   switchToDefaultContent   switchToFrame   switchToWindow   touchDoubleTap   touchDown   touchElementFlick   touchFlick   touchLongPress   touchMove   touchScroll   touchSingleTap   touchUp   upload  

Included Modules

BridgeHelper

Constants

QUIT_ERRORS = [IOError]

Attributes

capabilities  [R] 
context  [RW] 
file_detector  [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

javascript execution

finding elements

element properties

window handling

navigation

Returns the current session ID.

switchToActiveElement()

Alias for getActiveElement

[Validate]