RequiredElementType - means the required type from the list of allowed types below
that implement WebElement Instances of the defined type will be
returned via findElement* and findElements*.
Warning (!!!). Allowed types:WebElementTouchableElementRemoteWebElementMobileElement
IOSElementpublic class IOSDriver<RequiredElementType extends org.openqa.selenium.WebElement> extends AppiumDriver<RequiredElementType> implements IOSDeviceActionShortcuts, GetsNamedTextField<RequiredElementType>, FindsByIosUIAutomation<RequiredElementType>
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.remote.Response |
execute(String driverCommand,
Map<String,?> parameters) |
T |
findElement(org.openqa.selenium.By by) |
T |
findElementByAccessibilityId(String using) |
T |
findElementByClassName(String using) |
T |
findElementByCssSelector(String using) |
T |
findElementById(String id) |
RequiredElementType |
findElementByIosUIAutomation(String using) |
T |
findElementByLinkText(String using) |
T |
findElementByName(String using) |
T |
findElementByPartialLinkText(String using) |
T |
findElementByTagName(String using) |
T |
findElementByXPath(String using) |
List<RequiredElementType> |
findElementsByIosUIAutomation(String using) |
RequiredElementType |
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.
|
RequiredElementType |
scrollTo(String text)
Scroll to the element whose 'text' attribute contains the input text.
|
RequiredElementType |
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, findElements, findElementsByAccessibilityId, findElementsByClassName, findElementsByCssSelector, findElementsById, findElementsByLinkText, findElementsByName, findElementsByPartialLinkText, findElementsByTagName, findElementsByXPath, 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, findElements, 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 RequiredElementType scrollTo(String text)
public RequiredElementType scrollToExact(String text)
scrollToExact in interface ScrollsTo<org.openqa.selenium.WebElement>text - 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 RequiredElementType getNamedTextField(String name)
GetsNamedTextFieldgetNamedTextField in interface GetsNamedTextField<RequiredElementType extends org.openqa.selenium.WebElement>name - accessiblity id of TextFieldGetsNamedTextField.getNamedTextField(String)public RequiredElementType findElementByIosUIAutomation(String using)
findElementByIosUIAutomation in interface FindsByIosUIAutomation<RequiredElementType extends org.openqa.selenium.WebElement>public List<RequiredElementType> findElementsByIosUIAutomation(String using)
findElementsByIosUIAutomation in interface FindsByIosUIAutomation<RequiredElementType extends org.openqa.selenium.WebElement>public org.openqa.selenium.remote.Response execute(String driverCommand, Map<String,?> parameters)
execute in interface MobileDriverexecute in class org.openqa.selenium.remote.RemoteWebDriverpublic T findElement(org.openqa.selenium.By by)
findElement in interface GenericSearchContext<T extends org.openqa.selenium.WebElement>findElement in interface org.openqa.selenium.SearchContextfindElement in interface org.openqa.selenium.WebDriverfindElement in class org.openqa.selenium.remote.RemoteWebDriverpublic T findElementById(String id)
findElementById in interface GenericFindsById<T extends org.openqa.selenium.WebElement>findElementById in interface org.openqa.selenium.internal.FindsByIdfindElementById in class org.openqa.selenium.remote.RemoteWebDriverpublic T findElementByLinkText(String using)
findElementByLinkText in interface GenericFindsByLinkText<T extends org.openqa.selenium.WebElement>findElementByLinkText in interface org.openqa.selenium.internal.FindsByLinkTextfindElementByLinkText in class org.openqa.selenium.remote.RemoteWebDriverpublic T findElementByPartialLinkText(String using)
findElementByPartialLinkText in interface GenericFindsByLinkText<T extends org.openqa.selenium.WebElement>findElementByPartialLinkText in interface org.openqa.selenium.internal.FindsByLinkTextfindElementByPartialLinkText in class org.openqa.selenium.remote.RemoteWebDriverpublic T findElementByTagName(String using)
findElementByTagName in interface GenericFindsByTagName<T extends org.openqa.selenium.WebElement>findElementByTagName in interface org.openqa.selenium.internal.FindsByTagNamefindElementByTagName in class org.openqa.selenium.remote.RemoteWebDriverpublic T findElementByName(String using)
findElementByName in interface GenericFindsByName<T extends org.openqa.selenium.WebElement>findElementByName in interface org.openqa.selenium.internal.FindsByNamefindElementByName in class org.openqa.selenium.remote.RemoteWebDriverpublic T findElementByClassName(String using)
findElementByClassName in interface GenericFindsByClassName<T extends org.openqa.selenium.WebElement>findElementByClassName in interface org.openqa.selenium.internal.FindsByClassNamefindElementByClassName in class org.openqa.selenium.remote.RemoteWebDriverpublic T findElementByCssSelector(String using)
findElementByCssSelector in interface GenericFindsByCssSelector<T extends org.openqa.selenium.WebElement>findElementByCssSelector in interface org.openqa.selenium.internal.FindsByCssSelectorfindElementByCssSelector in class org.openqa.selenium.remote.RemoteWebDriverpublic T findElementByXPath(String using)
findElementByXPath in interface GenericFindsByXPath<T extends org.openqa.selenium.WebElement>findElementByXPath in interface org.openqa.selenium.internal.FindsByXPathfindElementByXPath in class org.openqa.selenium.remote.RemoteWebDriverpublic T findElementByAccessibilityId(String using)
findElementByAccessibilityId in interface FindsByAccessibilityId<org.openqa.selenium.WebElement>Copyright © 2015. All rights reserved.