aboutsummaryrefslogtreecommitdiff
path: root/src/com/google/android/droiddriver/uiautomation/UiAutomationDriver.java
diff options
context:
space:
mode:
authorKevin Jin <kjin@google.com>2014-02-04 15:51:06 -0800
committerKevin Jin <kjin@google.com>2014-02-04 15:51:06 -0800
commit39b609194aea07e7f1d8ead084d48d1171198f02 (patch)
tree1a51f2dfea4cc4ca1c45a092558a32d65604fe28 /src/com/google/android/droiddriver/uiautomation/UiAutomationDriver.java
parent5d6ce8025e73d9f7f1631bfe05cff32b055d1939 (diff)
downloaddroiddriver-39b609194aea07e7f1d8ead084d48d1171198f02.tar.gz
delete DroidDriver samples to remove dep on actionbarsherlock
add sync on UI thread idle in UiAutomationDriver refine AccessibilityEventScrollStepStrategy api Change-Id: I176eb1a40f0a914121c60b887784760ebe354ae4
Diffstat (limited to 'src/com/google/android/droiddriver/uiautomation/UiAutomationDriver.java')
-rw-r--r--src/com/google/android/droiddriver/uiautomation/UiAutomationDriver.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/google/android/droiddriver/uiautomation/UiAutomationDriver.java b/src/com/google/android/droiddriver/uiautomation/UiAutomationDriver.java
index 0e5ea78..f6c6c62 100644
--- a/src/com/google/android/droiddriver/uiautomation/UiAutomationDriver.java
+++ b/src/com/google/android/droiddriver/uiautomation/UiAutomationDriver.java
@@ -30,7 +30,7 @@ import com.google.android.droiddriver.util.Logs;
import com.google.common.primitives.Longs;
/**
- * Implementation of a DroidDriver that is driven via the accessibility layer.
+ * Implementation of DroidDriver that is driven via the accessibility layer.
*/
public class UiAutomationDriver extends BaseDroidDriver {
// TODO: magic const from UiAutomator, but may not be useful
@@ -64,6 +64,7 @@ public class UiAutomationDriver extends BaseDroidDriver {
private AccessibilityNodeInfo getRootNode() {
long timeoutMillis = getPoller().getTimeoutMillis();
try {
+ context.getInstrumentation().waitForIdleSync();
uiAutomation.waitForIdle(QUIET_TIME_TO_BE_CONSIDERD_IDLE_STATE, timeoutMillis);
} catch (java.util.concurrent.TimeoutException e) {
throw new TimeoutException(e);