public class IOSDriver extends AppiumDriver implements IOSDeviceActionShortcuts, GetsNamedTextField, FindsByIosUIAutomation
org.openqa.selenium.remote.RemoteWebDriver.RemoteTargetLocator, org.openqa.selenium.remote.RemoteWebDriver.RemoteWebDriverOptions, org.openqa.selenium.remote.RemoteWebDriver.When
org.openqa.selenium.WebDriver.ImeHandler, org.openqa.selenium.WebDriver.Navigation, org.openqa.selenium.WebDriver.Options, org.openqa.selenium.WebDriver.TargetLocator, org.openqa.selenium.WebDriver.Timeouts, org.openqa.selenium.WebDriver.Window
KEY_CODE, PATH
Constructor and Description |
---|
IOSDriver(URL remoteAddress,
org.openqa.selenium.Capabilities desiredCapabilities) |
Modifier and Type | Method and Description |
---|---|
org.openqa.selenium.WebElement |
findElementByIosUIAutomation(String using) |
List<org.openqa.selenium.WebElement> |
findElementsByIosUIAutomation(String using) |
org.openqa.selenium.WebElement |
getNamedTextField(String name)
In iOS apps, named TextFields have the same accessibility Id as their
containing TableElement.
|
void |
hideKeyboard(String keyName)
Hides the keyboard by pressing the button specified by keyName if it is
showing.
|
void |
hideKeyboard(String strategy,
String keyName)
Hides the keyboard if it is showing.
|
MobileElement |
scrollTo(String text)
Scroll to the element whose 'text' attribute contains the input text.
|
MobileElement |
scrollToExact(String text)
Scroll to the element whose 'text' attribute is equal to the input text.
|
void |
shake()
Simulate shaking the device
|
_isNotNullOrEmpty, _isNotNullOrEmpty, closeApp, context, execute, execute, findElementByAccessibilityId, findElementsByAccessibilityId, getCommandImmutableMap, getCommandImmutableMap, getContext, getContextHandles, getExecuteMethod, getOrientation, getRemoteAddress, getSettings, hideKeyboard, installApp, isAppInstalled, launchApp, location, lockScreen, performMultiTouchAction, performTouchAction, pinch, pinch, pullFile, pullFolder, removeApp, resetApp, rotate, runAppInBackground, sendKeyEvent, setLocation, setSetting, substituteMobilePlatform, swipe, tap, tap, zoom, zoom
close, executeAsyncScript, executeScript, findElement, findElement, findElementByClassName, findElementByCssSelector, findElementById, findElementByLinkText, findElementByName, findElementByPartialLinkText, findElementByTagName, findElementByXPath, findElements, findElements, findElementsByClassName, findElementsByCssSelector, findElementsById, findElementsByLinkText, findElementsByName, findElementsByPartialLinkText, findElementsByTagName, findElementsByXPath, get, getCapabilities, getCommandExecutor, getCurrentUrl, getElementConverter, getErrorHandler, getFileDetector, getKeyboard, getMouse, getPageSource, getRemoteStatus, getScreenshotAs, getSessionId, getTitle, getWindowHandle, getWindowHandles, log, manage, navigate, quit, setCommandExecutor, setElementConverter, setErrorHandler, setFileDetector, setFoundBy, setLogLevel, setSessionId, startClient, startSession, startSession, stopClient, switchTo, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
hideKeyboard, sendKeyEvent
public IOSDriver(URL remoteAddress, org.openqa.selenium.Capabilities desiredCapabilities)
public MobileElement scrollTo(String text)
public MobileElement scrollToExact(String text)
scrollToExact
in interface ScrollsTo
text
- input text to matchpublic void hideKeyboard(String strategy, String keyName)
IOSDeviceActionShortcuts
hideKeyboard
in interface IOSDeviceActionShortcuts
strategy
- HideKeyboardStrategykeyName
- a String, representing the text displayed on the button of the
keyboard you want to press. For example: "Done"IOSDeviceActionShortcuts.hideKeyboard(String, String)
public void hideKeyboard(String keyName)
IOSDeviceActionShortcuts
hideKeyboard
in interface IOSDeviceActionShortcuts
keyName
- The button pressed by the mobile driver to attempt hiding the
keyboardIOSDeviceActionShortcuts.hideKeyboard(String)
public void shake()
IOSDeviceActionShortcuts
shake
in interface IOSDeviceActionShortcuts
IOSDeviceActionShortcuts.shake()
public org.openqa.selenium.WebElement getNamedTextField(String name)
GetsNamedTextField
getNamedTextField
in interface GetsNamedTextField
name
- accessiblity id of TextFieldGetsNamedTextField.getNamedTextField(String)
public org.openqa.selenium.WebElement findElementByIosUIAutomation(String using)
findElementByIosUIAutomation
in interface FindsByIosUIAutomation
public List<org.openqa.selenium.WebElement> findElementsByIosUIAutomation(String using)
findElementsByIosUIAutomation
in interface FindsByIosUIAutomation
Copyright © 2014. All rights reserved.