aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2013-08-19add DroidDriver#refreshUiElementTreeKevin Jin
This makes the refreshing step explicit, and gives users finer control. Change-Id: Ia4b4e9476805a887096bf620d83a522d2892ee59
2013-08-16add methods to Direction classes for symmetryKevin Jin
add optimization to SentinelScroller: optionally start search from beginning by flinging or KEYCODE_MOVE_HOME This seems to gain 5% speed Change-Id: I1b303b209c5a43929314fa070398a52d776ac74a
2013-08-14Enforce childFinder is relative to parentFinder in SentinelScrollerKevin Jin
clarify the terms of child and descendant add XPaths.withDescendant some cosmetic changes Change-Id: Iaf6b7c699ccca5464db7e451d3c11715c18d4c69
2013-08-09extract matches method from MatchFinder:Kevin Jin
Instead of inheritance by overriding matches, use composition of a predicate. organize imports. Change-Id: I1aa95cb14822fb27151cda8bdffd61580b49c5e3
2013-08-09remove getChild and getChildCount in UiElementKevin Jin
wait for sentinel in the corner cases when parent updates slowly Change-Id: I9bbe36c6566dca8453ec12030d17703790ae9a25
2013-08-09rename ScrollDirection to scroll.Direction.PhysicalDirectionKevin Jin
rename PressKeyAction to SingleKeyAction rename TypeAction to TextAction Change-Id: I433e2fbd466143da48ab0b9d6094509560c01eca
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-08-05add scroll APIKevin Jin
clean up Events usage revise some JavaDoc Change-Id: Ib67fa6ecea5d7a3ef8325bc4e1778645c46d6741
2013-07-23break circular reference between UiElement and dom ElementKevin Jin
add FileUtils.getAbsoluteFile Change-Id: I278edbd60018ba230e966f5ce48cb582a98db44f
2013-07-18fix memory leak in Contexts UiElement cacheKevin Jin
UiElement values need to be WeakReference as well Change-Id: I31f6e833216154a3d3da7ebabc856d8ce8221631
2013-07-16add ActivityUtils.setRunningActivitySupplierKevin Jin
This is compatible with other potential runners, such as G3ITR Change-Id: I02379376c9c4a67452cf67cda5be9bc273fbc3c6
2013-07-12warn the [ab]use of DroidDriver#has(finder, timeoutMillis)Kevin Jin
Change-Id: Ic2239d6cdf2292ea06f11596292e38d7c6755af0
2013-07-11remove versions of check* with custom timeoutsKevin Jin
Change-Id: Ic4ac93d5f9694747cb0381673cc8004ad150ea80
2013-07-11add @UseUiAutomation as an explicit version of @MinSdkVersion(18)Kevin Jin
Change-Id: Iedc9e44e7636237488136632d8c440bc72d8ff17
2013-07-10add test for XPaths.quoteXPathLiteralKevin Jin
Change-Id: I2ac3886656519f3ea5ae2968eb15d35fa76d8688
2013-07-10add XPaths.quoteXPathLiteralKevin Jin
Change-Id: I682f2493a49db26f8092ae8bb8c5267f0c58bfc3
2013-07-09fix InstrumentationDriver for multiple root viewsKevin Jin
Change-Id: I50c4c1b10025296b70d8fc5bebcf4bfc12d41417
2013-07-09Merge "Fixed ViewElement.getVisibleBounds()"Anthony Wickham
2013-07-09Fixed ViewElement.getVisibleBounds()Jiexi Cao
Previously, getVisibleBounds was only getting the coordinates of an element relative to the topmost view, which is not the screen in the case that there is a pop-up dialog. By using view.getLocationOnScreen, we can adjust the relative coordinates to apply to the entire screen and have the driver click on the correct place. Bug: b/9743953 Change-Id: I51a2f7fc8974fba9d08c660b6e7926eb0e305abb
2013-07-08Added containsAttr() to XPaths.Tony Wickham
Change-Id: I8ada6883107d7dbceaf0e9391a683ff498924b36
2013-07-03check view.getResources != null in getResourceIdKevin Jin
Change-Id: Ib90d4058b6f3b0dca2d3ab922a045e3279eaee19
2013-07-03comment out unsafe check in AbstractUiElement.setTextKevin Jin
add toString for Action Change-Id: Ib97349d1e8bb24853a1ef8856da2fb96152240c0
2013-07-02FileUtils: setReadable after file creationKevin Jin
Change-Id: I4e317dbe742093658173a7bd2891331fbe7964de
2013-06-28expose DroidDriver.find for pollersKevin Jin
Change-Id: Ie9c4bc52e744ccd949cc46a87b94b02ff1a549c9
2013-06-27wait for RunningActivity in InstrumentationDriverKevin Jin
Change-Id: Ic4cb68fc46cec433a7989187ed64f73e2c5aa6e8
2013-06-27add ViewElement#overrideClassNameKevin Jin
for consistent results no matter which driver is used Change-Id: I4f73bb194b2c652645622ba19c880fd539b74918
2013-06-26remove hack in UiAutomationElement.click:Kevin Jin
The problem with Music app is in DrawerLayout impl, not DroidDriver. Also fixed logging. Change-Id: I870dc92680708e4f9c862faa0a0618d576a9b6d8
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-24getClassName() doesn't work below API 14; handled more gracefullyTony Wickham
Change-Id: I0ff6d68be7ecc4e9f5555a32ed09aa4dd633f236
2013-06-21fix ViewElement.getClassName: runOnMainSyncKevin Jin
Change-Id: Ie13e6f41fc9a8783ed7ee77809b06951f7c0f8e7
2013-06-21getClassName returns the class name as seen by AccessibilityServiceKevin Jin
Change-Id: I520f249680c72e4fa2b752de4bf4013815ff8970
2013-06-20ViewElement.isVisible checks isShown in addition to RectKevin Jin
Change-Id: Ie7e508d9a67629bf871d05887d26b9d3db645c32
2013-06-19add takeScreenshot to InstrumentationDriverKevin Jin
Change-Id: I347532ed9f4e4aa59ac045a83ee7b4f25735c251
2013-06-20Merge "Added getRunningActivity; Precautions in ↵Tony Wickham
InstrumentationDriver.getRootElement"
2013-06-19Added getRunningActivity; Precautions in InstrumentationDriver.getRootElementTony Wickham
There is now a ActivityUtils class with a getRunningActivity() method, which depends on the overridden callActivityOnResume() and callActivityOnPause() methods in TestRunner to maintain a currentActivity. InstrumentationDriver.getRootElement now throws an exception if the test activity isn't started and uses runningActivity.getWindow().getDecorView() as the root element (used for finding elements). Change-Id: Ib43ed5b2b8f17bc2dc20f21c24d76afe54fa34cd
2013-06-19Added more finding methods to finders/By.javaJiexi Cao
Added: textContains and contentDescriptionContains (both case- sensitive) and packageName. Change-Id: Icd053aa330d6b55a6f9347f579038582db9f41a4
2013-06-06rename Matcher to FinderKevin Jin
Change-Id: Id63cf416b2d548ac676e53f9377e6f7c7dbbbedf
2013-06-05add PNG as the default screenshot formatKevin Jin
Change-Id: I3c38997fed807af02cbd7ea9baac387d83789211
2013-06-04add helper methods to DroidDriver that simply test code:Kevin Jin
checkExists, checkGone and their variations w/ ad-hoc timeout Change-Id: Ie742dcd04b49d044ea93b949b725736ee4ca4fe1
2013-05-31remove findElement in UiElementKevin Jin
remove DD.getRootElement, rename DD.waitForElement to on Change-Id: I68eef1b39889c8f1f0677fcbb265cfd9dfdca01f
2013-05-31add ScreenshotterKevin Jin
move dumpDom from UiElement to DroidDriver uniform toString in AbstractUiElement instead of subclasses Change-Id: Ic78b812a206e73d23a47c94d9e9fe79a99c23d6c
2013-05-29move UiElement tree traversal logic to ElementMatcherKevin Jin
Now both Matchers handle traversal internally Change-Id: I368f2b60ba9e4157b7ecbef2e8f64231778a53d0
2013-05-29change type of millis int->longKevin Jin
Change-Id: Ibcd6be9ea429f665a653f3aa1b3c6a27d3d84766
2013-05-28rename getRect -> getBoundsKevin Jin
This follows uiautomatorviewer convention, making it easier for DD users to use that tool. Skip invisible children -- this is critical; e.g. ViewPager keeps all invisible pages in memory. If users use uiautomatorviewer to define matchers, the invisible nodes may match surprisingly. Change-Id: Idc4298bf18931978e2e9fd3c27e273f0e49c2f1f
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-20add NOP_LISTENER_REMOVER and some Convenience methodsKevin Jin
Change-Id: I0b2f8e3876d3a3bf2111f4e44ef647a84a5bbbcd