public class UIAElement extends Object implements UIAutomationElement, MobileElement
UIAElement is the super class for all user interface elements in the context of the Automation
instrument for automating user interface testing of iOS apps. This interface defines more general methods that can be
used on any type of user interface elements.| Constructor and Description |
|---|
UIAElement(String locator) |
| Modifier and Type | Method and Description |
|---|---|
void |
doubleTap(Object... expected)
Double-taps the specified element.
|
org.openqa.selenium.WebElement |
findElement(String locator)
Finds the corresponding web element using the string locator.
|
protected SeLionIOSBridgeDriver |
getBridgeDriver() |
String |
getLabel()
Returns a string containing the label attribute of the element.
|
String |
getLocator()
Returns a string containing the locator used for the element
|
String |
getName()
Returns a string containing the name attribute of the element.
|
String |
getValue()
Returns a string containing a value attribute specific to the type of element.
|
void |
scrollToVisible()
Scrolls until the specified element is visible in a container view.
|
protected void |
setBridgeDriver(SeLionIOSBridgeDriver bridgeDriver) |
protected void |
setLocator(String locator) |
void |
tap(Object... expected)
Taps the specified element and optionally waits for the provided expected elements.
|
void |
tapWithOptions(EnumMap<GestureOptions,String> gestureOptions,
Object... expected)
Performs the specified gesture on the specified element using a
EnumMap to specify gesture attributes. |
void |
twoFingerTap(Object... expected)
Performs a two-finger (two-touch) tap on this element.
|
protected void |
waitFor(Object... expected) |
public UIAElement(String locator)
protected SeLionIOSBridgeDriver getBridgeDriver()
protected void setBridgeDriver(SeLionIOSBridgeDriver bridgeDriver)
protected void setLocator(String locator)
public org.openqa.selenium.WebElement findElement(String locator)
UIAutomationElementBy
entity and fed to RemoteWebElement.findElement(By) for further processing.findElement in interface MobileElementfindElement in interface UIAutomationElementlocator - A String that represents the means to locate this element (could be id/name/xpath/css locator).WebElement found by the locator.public void doubleTap(Object... expected)
UIAutomationElementdoubleTap in interface UIAutomationElementexpected - Expected entities in the form of objects extending UIAElement, xpath location in the form of
String, instances of ExpectedCondition, or an instance of a WebPagepublic void scrollToVisible()
UIAutomationElementscrollToVisible in interface UIAutomationElementpublic void tap(Object... expected)
UIAutomationElementtap in interface MobileElementtap in interface UIAutomationElementexpected - Expected entities in the form of objects extending UIAElement, xpath location in the form of
String, instances of ExpectedCondition, or an instance of a WebPagepublic void tapWithOptions(EnumMap<GestureOptions,String> gestureOptions, Object... expected)
UIAutomationElementEnumMap to specify gesture attributes.
Refer GestureOptions for specifying gesture options.tapWithOptions in interface UIAutomationElementgestureOptions - EnumMap specifying the gesture attributes.expected - Expected entities in the form of objects extending UIAElement, xpath location in the form of
String, instances of ExpectedCondition, or an instance of a WebPagepublic void twoFingerTap(Object... expected)
UIAutomationElementtwoFingerTap in interface UIAutomationElementexpected - Expected entities in the form of objects extending UIAElement, xpath location in the form of
String, instances of ExpectedCondition, or an instance of a WebPagepublic String getLabel()
UIAutomationElementgetLabel in interface UIAutomationElementpublic String getName()
UIAutomationElementgetName in interface UIAutomationElementpublic String getValue()
UIAutomationElementgetValue in interface MobileElementgetValue in interface UIAutomationElementpublic String getLocator()
UIAutomationElementgetLocator in interface MobileElementgetLocator in interface UIAutomationElementprotected void waitFor(Object... expected)
Copyright © 2016 PayPal Open Source. All rights reserved.