public interface UIAutomationAlert extends UIAutomationElement
UIAutomationAlert
interface 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, getLabel, getLocator, getName, getValue, scrollToVisible, tap, tapWithOptions, twoFingerTap
void clickCancelButton(Object... expected)
expected
- Expected entities in the form of objects extending UIAElement
or xpath location in the form of
String
or instances of ExpectedCondition
.void clickButtonAtIndex(int index, Object... expected)
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.