public interface UIAutomationElement
UIAutomationElement
is the super interface 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.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.
|
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.
|
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.
|
org.openqa.selenium.WebElement findElement(String locator)
By
entity and fed to RemoteWebElement.findElement(By)
for further processing.locator
- A String that represents the means to locate this element (could be id/name/xpath/css locator).WebElement
found by the locator.void doubleTap(Object... expected)
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 WebPage
void scrollToVisible()
void tap(Object... expected)
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 WebPage
void tapWithOptions(EnumMap<GestureOptions,String> gestureOptions, Object... expected)
EnumMap
to specify gesture attributes.
Refer GestureOptions
for specifying gesture options.gestureOptions
- 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 WebPage
void twoFingerTap(Object... expected)
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 WebPage
String getLabel()
String getName()
String getValue()
String getLocator()
Copyright © 2016 PayPal Open Source. All rights reserved.