aboutsummaryrefslogtreecommitdiff
path: root/libs/UiAutomatorLib/src/com/android/afwtest
diff options
context:
space:
mode:
authorJinhui Wang <jinhuiw@google.com>2016-07-28 15:22:54 -0700
committerJinhui Wang <jinhuiw@google.com>2016-07-28 15:26:00 -0700
commitf1298034c2566013168d1467dac47be3d431348b (patch)
tree9ffe2e097d509b9e690c1e47a2fb9e554fce33e2 /libs/UiAutomatorLib/src/com/android/afwtest
parent52d915ef231b617a24b57a44371467ecda19cb52 (diff)
downloadAfwTestHarness-f1298034c2566013168d1467dac47be3d431348b.tar.gz
Update Ui watch to auto close dialog with button "Close"
Change-Id: I21ddd055058128886b326a5d6c749bb90d643a5d
Diffstat (limited to 'libs/UiAutomatorLib/src/com/android/afwtest')
-rw-r--r--libs/UiAutomatorLib/src/com/android/afwtest/uiautomator/test/AfwTestUiWatcher.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/UiAutomatorLib/src/com/android/afwtest/uiautomator/test/AfwTestUiWatcher.java b/libs/UiAutomatorLib/src/com/android/afwtest/uiautomator/test/AfwTestUiWatcher.java
index 3d9ba2f..f4b7f3e 100644
--- a/libs/UiAutomatorLib/src/com/android/afwtest/uiautomator/test/AfwTestUiWatcher.java
+++ b/libs/UiAutomatorLib/src/com/android/afwtest/uiautomator/test/AfwTestUiWatcher.java
@@ -85,7 +85,8 @@ public final class AfwTestUiWatcher implements UiWatcher {
private static final String[] ACCEPT_WORDS = {
"[aA]ccept", "ACCEPT",
"[aA]gree", "AGREE",
- "[aA]llow", "ALLOW"};
+ "[aA]llow", "ALLOW",
+ "[cC]lose", "CLOSE"};
/**
* {@link Pattern} to match any "Accept" word in {@link #ACCEPT_WORDS}.