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.Whenorg.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.WindowKEY_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, getAppStrings, getAppStrings, getCommandImmutableMap, getCommandImmutableMap, getContext, getContextHandles, getExecuteMethod, getOrientation, getRemoteAddress, getSettings, hideKeyboard, installApp, isAppInstalled, launchApp, location, lockScreen, performMultiTouchAction, performTouchAction, pinch, pinch, pullFile, pullFolder, removeApp, resetApp, rotate, runAppInBackground, setLocation, setSetting, substituteMobilePlatform, swipe, tap, tap, zoom, zoomclose, 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, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waithideKeyboardpublic IOSDriver(URL remoteAddress, org.openqa.selenium.Capabilities desiredCapabilities)
public MobileElement scrollTo(String text)
public MobileElement scrollToExact(String text)
scrollToExact in interface ScrollsTotext - input text to matchpublic void hideKeyboard(String strategy, String keyName)
IOSDeviceActionShortcutshideKeyboard in interface IOSDeviceActionShortcutsstrategy - 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)
IOSDeviceActionShortcutshideKeyboard in interface IOSDeviceActionShortcutskeyName - The button pressed by the mobile driver to attempt hiding the
keyboardIOSDeviceActionShortcuts.hideKeyboard(String)public void shake()
IOSDeviceActionShortcutsshake in interface IOSDeviceActionShortcutsIOSDeviceActionShortcuts.shake()public org.openqa.selenium.WebElement getNamedTextField(String name)
GetsNamedTextFieldgetNamedTextField in interface GetsNamedTextFieldname - accessiblity id of TextFieldGetsNamedTextField.getNamedTextField(String)public org.openqa.selenium.WebElement findElementByIosUIAutomation(String using)
findElementByIosUIAutomation in interface FindsByIosUIAutomationpublic List<org.openqa.selenium.WebElement> findElementsByIosUIAutomation(String using)
findElementsByIosUIAutomation in interface FindsByIosUIAutomationCopyright © 2015. All rights reserved.