public class UIAAlert extends UIAElement implements UIAutomationAlert
UIAAlert
class allows access to, and control of, alerts within your app.Modifier and Type | Method and Description |
---|---|
void |
clickButtonAtIndex(int index,
Object... expected)
Click the button in the corresponding index.
|
void |
clickCancelButton(Object... expected)
Click the cancel button of the alert view.
|
doubleTap, findElement, getBridgeDriver, getLabel, getLocator, getName, getValue, scrollToVisible, setBridgeDriver, setLocator, tap, tapWithOptions, twoFingerTap, waitFor
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
doubleTap, findElement, getLabel, getLocator, getName, getValue, scrollToVisible, tap, tapWithOptions, twoFingerTap
public UIAAlert(String locator)
public void clickCancelButton(Object... expected)
UIAutomationAlert
clickCancelButton
in interface UIAutomationAlert
expected
- Expected entities in the form of objects extending UIAElement
or xpath location in the form of
String
or instances of ExpectedCondition
.public void clickButtonAtIndex(int index, Object... expected)
UIAutomationAlert
clickButtonAtIndex
in interface UIAutomationAlert
index
- Index of the button to be clickedexpected
- Expected entities in the form of objects extending UIAElement
or xpath location in the form of
String
or instances of ExpectedCondition
.Copyright © 2016 PayPal Open Source. All rights reserved.