Class: Selenium::WebDriver::IPhone::Bridge
- Inherits:
-
Remote::Bridge
- Object
- Remote::Bridge
- Selenium::WebDriver::IPhone::Bridge
- Defined in:
- lib/selenium/webdriver/iphone/bridge.rb
Constant Summary collapse
Constants inherited from Remote::Bridge
Instance Attribute Summary
Attributes inherited from Remote::Bridge
Instance Method Summary collapse
- #browser ⇒ Object
- #capabilities ⇒ Object
- #driver_extensions ⇒ Object
-
#initialize(opts = nil) ⇒ Bridge
constructor
A new instance of Bridge.
Methods inherited from Remote::Bridge
#acceptAlert, #addCookie, #clearElement, #click, #clickElement, #close, command, #contextClick, #create_session, #deleteAllCookies, #deleteCookie, #dismissAlert, #doubleClick, #dragElement, #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, #quit, #refresh, #sendKeysToElement, #sendModifierKeyToActiveElement, #session_id, #setAlertValue, #setElementSelected, #setImplicitWaitTimeout, #setScriptTimeout, #setVisible, #submitElement, #switchToDefaultContent, #switchToFrame, #switchToWindow, #toggleElement
Methods included from BridgeHelper
#element_id_from, #parse_cookie_string, #unwrap_script_result
Constructor Details
#initialize(opts = nil) ⇒ Bridge
Returns a new instance of Bridge.
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/selenium/webdriver/iphone/bridge.rb', line 8 def initialize(opts = nil) if opts super else super( :url => DEFAULT_URL, :desired_capabilities => capabilities ) end end |
Instance Method Details
#browser ⇒ Object
19 20 21 |
# File 'lib/selenium/webdriver/iphone/bridge.rb', line 19 def browser :iphone end |
#capabilities ⇒ Object
27 28 29 |
# File 'lib/selenium/webdriver/iphone/bridge.rb', line 27 def capabilities @capabilities ||= Remote::Capabilities.iphone end |
#driver_extensions ⇒ Object
23 24 25 |
# File 'lib/selenium/webdriver/iphone/bridge.rb', line 23 def driver_extensions [] end |