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, waitForclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdoubleTap, findElement, getLabel, getLocator, getName, getValue, scrollToVisible, tap, tapWithOptions, twoFingerTappublic UIAAlert(String locator)
public void clickCancelButton(Object... expected)
UIAutomationAlertclickCancelButton in interface UIAutomationAlertexpected - 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)
UIAutomationAlertclickButtonAtIndex in interface UIAutomationAlertindex - 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.