Class: Selenium::WebDriver::Android::Bridge Private
- Inherits:
-
Remote::Bridge
- Object
- Remote::Bridge
- Selenium::WebDriver::Android::Bridge
- Defined in:
- lib/selenium/webdriver/android/bridge.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Constant Summary collapse
- DEFAULT_URL =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
"http://#{Platform.localhost}:8080/wd/hub/"
Constants inherited from Remote::Bridge
Instance Attribute Summary
Attributes inherited from Remote::Bridge
#context, #file_detector, #http
Instance Method Summary collapse
- #browser ⇒ Object private
- #capabilities ⇒ Object private
- #driver_extensions ⇒ Object private
- #getScreenOrientation ⇒ Object private
-
#initialize(opts = {}) ⇒ Bridge
constructor
private
A new instance of Bridge.
- #setScreenOrientation(orientation) ⇒ Object private
Methods inherited from Remote::Bridge
#acceptAlert, #addCookie, #clearElement, #click, #clickElement, #close, command, #contextClick, #create_session, #deleteAllCookies, #deleteCookie, #dismissAlert, #doubleClick, #dragElement, #elementEquals, #executeAsyncScript, #executeScript, #find_element_by, #find_elements_by, #get, #getActiveElement, #getAlert, #getAlertText, #getAllCookies, #getCapabilities, #getCurrentUrl, #getCurrentWindowHandle, #getElementAttribute, #getElementLocation, #getElementLocationOnceScrolledIntoView, #getElementSize, #getElementTagName, #getElementText, #getElementValue, #getElementValueOfCssProperty, #getPageSource, #getScreenshot, #getTitle, #getVisible, #getWindowHandles, #getWindowPosition, #getWindowSize, #goBack, #goForward, #isElementDisplayed, #isElementEnabled, #isElementSelected, #mouseDown, #mouseMoveTo, #mouseUp, #quit, #refresh, #sendKeysToActiveElement, #sendKeysToElement, #session_id, #setAlertValue, #setElementSelected, #setImplicitWaitTimeout, #setScriptTimeout, #setVisible, #setWindowPosition, #setWindowSize, #submitElement, #switchToDefaultContent, #switchToFrame, #switchToWindow, #upload
Methods included from BridgeHelper
#element_id_from, #parse_cookie_string, #unwrap_script_result
Constructor Details
#initialize(opts = {}) ⇒ Bridge
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Bridge.
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/selenium/webdriver/android/bridge.rb', line 13 def initialize(opts = {}) remote_opts = { :url => opts.fetch(:url, DEFAULT_URL), :desired_capabilities => opts.fetch(:desired_capabilities, capabilities), } remote_opts[:http_client] = opts[:http_client] if opts.has_key?(:http_client) super remote_opts end |
Instance Method Details
#browser ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
24 25 26 |
# File 'lib/selenium/webdriver/android/bridge.rb', line 24 def browser :android end |
#capabilities ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
44 45 46 |
# File 'lib/selenium/webdriver/android/bridge.rb', line 44 def capabilities @capabilities ||= Remote::Capabilities.android end |
#driver_extensions ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
28 29 30 31 32 33 34 |
# File 'lib/selenium/webdriver/android/bridge.rb', line 28 def driver_extensions [ DriverExtensions::TakesScreenshot, DriverExtensions::Rotatable, DriverExtensions::HasInputDevices ] end |
#getScreenOrientation ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
40 41 42 |
# File 'lib/selenium/webdriver/android/bridge.rb', line 40 def getScreenOrientation execute :getScreenOrientation end |
#setScreenOrientation(orientation) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
36 37 38 |
# File 'lib/selenium/webdriver/android/bridge.rb', line 36 def setScreenOrientation(orientation) execute :setScreenOrientation, {}, :orientation => orientation end |