aboutsummaryrefslogtreecommitdiff
path: root/src/com/google/android/droiddriver/uiautomation/UiAutomationDriver.java
AgeCommit message (Collapse)Author
2015-02-20rename package 'com.google.android' to 'io.appium'Kevin Jin
Change-Id: I2c7c96cd6a6971806e2ea7b06cd6c2c6666e4340
2015-02-10Build droiddriver as an Android library with GradleKevin Jin
Update minSdkVersion to 12 Add @TargetApi appropriatedly to fix lint errors Remove Eclipse files Change-Id: I661d3fd0e8b2517ae9ee4ba1e489031a8846130d
2014-06-16expose setAccessibilityNodeInfoCacheClearerKevin Jin
Change-Id: I39780422d66133738978b028252c960765490623
2014-06-12add Validator interface and DefaultAccessibilityValidatorKevin Jin
refactor for cleaner implementation Change-Id: I6ba13c5a46e444806f492bc7de365405fecae0d5
2014-06-05add AccessibilityDriver for testing AccessibilityKevin Jin
This is the first cut with known issues, e.g. needs to handle click on EditText differently, etc. Thic cl sets up the architecture of AccessibilityDriver; details will be filled in follow-up cls. Change-Id: I2881b28075eba478a5aad9d7e945b5d55e78da89
2014-04-21remove deps on GuavaKevin Jin
This is to simplify the build and deployment set-up for DroidDriver clients. Change-Id: I02238d8721d4d3a505a851138c40cb086d2ff11f
2014-03-10Wraps calls to UiAutomation API.Kevin Jin
Currently supports fail-fast if UiAutomation throws IllegalStateException. Change-Id: I1e6472d113a63b14d3615ef0084ea00d209f7e63
2014-02-25fix the hanging when the app is constantly busy (no idle)Kevin Jin
The main thread may not enter the idle state when animation is playing, for example, the ProgressBar. Do not call waitForIdleSync in UiAutomationDriver. Change-Id: If3c355c8aa302a076895fd62a6428874b24f5d39
2014-02-04delete DroidDriver samples to remove dep on actionbarsherlockKevin Jin
add sync on UI thread idle in UiAutomationDriver refine AccessibilityEventScrollStepStrategy api Change-Id: I176eb1a40f0a914121c60b887784760ebe354ae4
2013-11-04Take snapshot of the underlying View or AccessibilityNodeInfo tree.Kevin Jin
This improves reliability. Add JavaDoc on order of getChildren. Change-Id: Iec4a4b693ef29eea1e067d538bab0078699e3d50
2013-09-05cosmetic changes for JavaDoc and logging for scrollKevin Jin
Change-Id: I5bf1044c51b642d682d4a0b3b4dc18aabe3a12cd
2013-08-08merge Screenshotter to UiDeviceKevin Jin
rename Abstract* to Base* move InputInjector to actions subpackage Change-Id: I3e119b4052bc032f2d09d630da51b38670239da9
2013-08-08add UiDevice for global actionsKevin Jin
add UiAutomationDriver#clearAccessibilityNodeInfoCache to work around an Accessibility bug Change-Id: I42db1d61944240520cc34f1ccb4537f572adecf9
2013-08-06clear internal data while refreshing rootandroid-sdk-4.4.2_r1.0.1android-sdk-4.4.2_r1android-cts-4.4_r4android-cts-4.4_r1android-4.4w_r1android-4.4_r1.2.0.1android-4.4_r1.2android-4.4_r1.1.0.1android-4.4_r1.1android-4.4_r1.0.1android-4.4_r1android-4.4_r0.9android-4.4_r0.8android-4.4_r0.7android-4.4.4_r2.0.1android-4.4.4_r2android-4.4.4_r1.0.1android-4.4.4_r1android-4.4.3_r1.1.0.1android-4.4.3_r1.1android-4.4.3_r1.0.1android-4.4.3_r1android-4.4.2_r2.0.1android-4.4.2_r2android-4.4.2_r1.0.1android-4.4.2_r1android-4.4.1_r1.0.1android-4.4.1_r1kitkat-wearkitkat-releasekitkat-mr2.2-releasekitkat-mr2.1-releasekitkat-mr2-releasekitkat-mr1.1-releasekitkat-mr1-releasekitkat-devkitkat-cts-releasekitkat-cts-devKevin Jin
wait for AccessibilityEvent after injecting events via UiAutomation Change-Id: I3d56e07cf2e7912a21de12d1a7bacd4f33e1bc5a
2013-06-25Fixed issue with clicking on partially visible elements.Tony Wickham
Because UiElement.click() was performed on the center of elements, it didn't work when the element's center was off screen. To fix this, I added a getVisibleBounds() method to UiElement, which is implemented by ViewElement and UiAutomationElement. This method is used in ClickAction to make sure that the click is performed on the visible portion of the element. DeviceUtils was added with getDisplayBounds(). Lastly, UiAutomationContext now holds Instrumentation instead of UiAutomation, which also forced other files to change accordingly. Change-Id: Ic2fd163a9759a0d95bd413b557976ee8a3d044f9
2013-06-19add takeScreenshot to InstrumentationDriverKevin Jin
Change-Id: I347532ed9f4e4aa59ac045a83ee7b4f25735c251
2013-06-05add PNG as the default screenshot formatKevin Jin
Change-Id: I3c38997fed807af02cbd7ea9baac387d83789211
2013-05-31add ScreenshotterKevin Jin
move dumpDom from UiElement to DroidDriver uniform toString in AbstractUiElement instead of subclasses Change-Id: Ic78b812a206e73d23a47c94d9e9fe79a99c23d6c
2013-05-29change type of millis int->longKevin Jin
Change-Id: Ibcd6be9ea429f665a653f3aa1b3c6a27d3d84766
2013-05-22sync with UiAutomation.executeAndWaitForEventKevin Jin
This solves the clicking DrawerLayout problem, but we need to find the exact cause to solve the general problem. Also add logging for Events Change-Id: I0cba140021b676cb1d13c3fe3d319c2cca535ccd
2013-05-21clean up ConditionCheckersKevin Jin
clearer logging for findElement Change-Id: I53f4d13f6a013b97368d3f7351cffa45c7d0efe6
2013-05-20wait longer for UiAutomation.getRootInActiveWindowKevin Jin
Change-Id: I7bb27b0f38b0bad6532eeb2470cfaeb8e6ede63f
2013-05-15expose getChild and getParentKevin Jin
remove Logs.wrap Change-Id: I4d6d58b58fdb70fee168d1a357767683fae11490
2013-03-18support xpathKevin Jin
Build a virtual DOM tree that maps UiAutomationElement or InstrumentationElement tree, respectively. Then use XPath on the DOM tree. TODO: filter insignificant nodes to make use of uiautomatorviewer TODO: add all attrs Change-Id: I2f9e289b77350f1e920a492ce438ebfd67882058
2013-03-15introduce *Context to manage instances and dependencyKevin Jin
Change-Id: Ice759c2791a41df1b80dd06b6a339833cb4a7979
2013-03-14Add an instrumentation driver.Thanh Le
Move common code out of UiautomationDriver to AbstractDriver. Change-Id: Icf749b76d82a4bc10ea00f4668e251adcc652ba6
2013-03-12convert EXISTS_CHECKER and GONE_CHECKER into constantsKevin Jin
Change-Id: If647639671f167314d0c1feb029364434d18e58e
2013-03-12rename uidriver to droiddriverKevin Jin
Change-Id: I1768103c3be816f96cce3350051db109dd77978d