Commit Graph

34 Commits

Author SHA1 Message Date
Zhou 787d4e2bd4 Fix Android XPath issue. 2013-07-10 19:39:11 +08:00
Zhou 68b787601a Fix the Android XPath strings issue.
Now it could work with XPath: android.view.View and android.widget.AdapterView.
2013-07-10 19:13:43 +08:00
Eric Plaster d2282486af Updated Exception handling in scrollto for android 2013-07-03 10:12:44 -05:00
Adriano Bonat e21bfb97a7 implemented touch long press for Android. 2013-06-29 17:29:31 -03:00
bootstraponline 260fc42ea1 Fix strings for on device APK 2013-06-26 10:32:07 -04:00
bootstraponline 3db7a09247 Fix #776 2013-06-18 16:28:26 -04:00
bootstraponline fb95cbd953 Add search strings.xml value
Useful for finding all keys that contain a common string.

mobile :searchValue, 'preferences_delete'
2013-06-17 13:40:16 -04:00
bootstraponline 6cb50d8edf Add mobile resolveId
Scroll requires the text in advance so resolveId is required. Ruby example:

mobile :resolveId, 'my_id'
2013-06-17 12:49:02 -04:00
bootstraponline 55c74dbf8d Add search id
Ruby example of finding all strings.xml ids that contain the value feedback.

mobile :searchId, 'feedback'
2013-06-17 11:52:12 -04:00
rorp 47c3cbf3fb Fixed a typo in GetDeviceSize Android handler 2013-06-16 15:30:14 -07:00
bootstraponline 6b9419e3f5 Use the same error message on iOS and Android
Fixes #689
2013-06-05 16:42:57 -04:00
bootstraponline df92440068 Merge pull request #703 from bootstraponline/675
Fix java.lang.IllegalStateException: UiAutomationService not connected.
2013-06-04 08:11:35 -07:00
Jonathan Lipps d88a0ea169 java style fixes 2013-06-04 07:56:56 -07:00
bootstraponline 4a2b957ae5 Fix java.lang.IllegalStateException: UiAutomationService not connected.
Fixes #675
2013-06-04 10:55:41 -04:00
Jonathan Lipps 4f2564a165 make sure device wakes up before trying to run test (fix #490) 2013-06-03 15:20:44 -07:00
bootstraponline cc776ed9f5 Use adb push and have server load on startup 2013-06-03 11:12:16 -04:00
Eric Plaster 2e6e1c58c7 Updated to use Timer 2013-05-31 20:04:06 -04:00
bootstraponline 839729d177 Start moving find by id to server 2013-05-31 20:04:05 -04:00
Jonathan Lipps 59dab35265 Merge pull request #679 from bootstraponline/fix_webview
WebView is not a widget
2013-05-30 17:01:07 -07:00
bootstraponline 745c170bdd WebView is not a widget 2013-05-30 18:57:21 -04:00
Jonathan Lipps c8d74fca57 make exception check broader 2013-05-30 08:34:34 -07:00
Jonathan Lipps f84cd0b08f add getLocation for android 2013-05-29 18:55:19 -07:00
Eric Plaster 5d7cc06ae8 Added changes to notify websocket listeners of alert dialogs.
One thing to keep in mind: iOS and Android treat dialogs differently. iOS "system" dialogs can be triggered from the application under test as well as from external sources (the system). However, Android treats dialogs as any other window. So, to make this work, the bootstrap app looks for windows with the package name of "com.android.systemui". These are dialogs that the system has instantiated, but not the app.

So, for example, if we had the same application written on both platforms, and they both had a login screen, and you click on the login button without putting in a username. On iOS, you would be notified if they used a standard system dialog, and you would not be notified on Android. However, if the system put up a low battery dialog, it would be detected on both systems.

So... The main reason for implementing this is to stop failing tests from unintentional dialogs appearing during an overnight test.

Updated call signiture to instruments.
2013-05-28 13:11:36 -05:00
bootstraponline c8644f6152 Return JSON
Fixes mobile find all search
2013-05-24 11:44:07 -04:00
bootstraponline e3ff8f360d Fix Android scroll_to 2013-05-24 10:30:41 -04:00
bootstraponline ea3450e7f7 Fix NPE
Fixes https://github.com/appium/appium/issues/628
2013-05-22 15:34:39 -04:00
Eric Plaster 2b44565b5d Added "wait for page load" support for android 2013-05-20 12:23:44 -05:00
Eric Plaster 1be068e9a5 Find by name now checks to see if it found the UiObject (by content-desc), and if it doesn't exist, searches by text (i.e. visible text displayed for a widget) 2013-05-16 17:08:23 -05:00
Dan Cuellar d4bc84f4d3 Completing Android Element Class Map 2013-05-12 15:42:38 -07:00
bootstraponline 4640877b8f Add scroll_into_view to mobile: find
Fix #566
Example. Scroll to an element with text or name matching 'account'

text = 'account'
       # scroll vertical ListView
args = 'scroll',
       # textContains(text)
       [ [3, text] ],
       # descriptionContains(text)
       [ [7, text] ]

mobile :find, args
2013-05-10 09:48:14 -04:00
Jonathan Lipps 3edcadac2d remove @author tags
fix #531
2013-05-08 19:01:24 -07:00
bootstraponline fb70cee88e Fix mobile find
Return proper error when element is not found
Raise runtime exception on disconnect so Appium restarts bootstrap

Fix #541
2013-05-07 12:43:56 -04:00
Jonathan Lipps 8c5687bfb1 add getName to android 2013-05-06 16:52:20 -07:00
Jonathan Lipps 5f070ffdc2 rename uiautomator/ dir to more descriptive android/ 2013-05-03 11:38:26 -07:00