From 5e63fb54c9d02cafdc6a90745a9d1c0fee17e54a Mon Sep 17 00:00:00 2001 From: Jinhui Wang Date: Thu, 27 Oct 2016 17:07:33 -0700 Subject: Auto click on "OK" buttons Change-Id: I07ad2e67c3230eaaff2e28af4906816ae8162635 --- .../src/com/android/afwtest/uiautomator/test/AfwTestUiWatcher.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/UiAutomatorLib/src/com/android') 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 1dac8a1..723d7d9 100644 --- a/libs/UiAutomatorLib/src/com/android/afwtest/uiautomator/test/AfwTestUiWatcher.java +++ b/libs/UiAutomatorLib/src/com/android/afwtest/uiautomator/test/AfwTestUiWatcher.java @@ -84,7 +84,7 @@ public final class AfwTestUiWatcher implements UiWatcher { * Words to match for "Accept" button's text or description. */ private static final String[] ACCEPT_WORDS = { - "accept", "agree", "allow", "close", "yes"}; + "accept", "agree", "allow", "close", "ok", "yes"}; /** * {@link Pattern} to match any "Accept" word in {@link #ACCEPT_WORDS}. -- cgit v1.2.3