Commit Graph

45 Commits

Author SHA1 Message Date
Jonathan Lipps 463e692c7b Merge pull request #2270 from imurchie/isaac-touch
Add touch and multitouch actions for Android
2014-04-07 14:19:00 -07:00
Isaac Murchie 0df0d2b2dc Add touch and multitouch actions for Android 2014-04-07 12:13:16 -07:00
Jonathan Lipps d2c88032ca fix uiautomator loc strat tests, and quarantine flakey wifi test 2014-04-07 12:10:34 -07:00
sebv eaf442675e test fix 2014-04-05 02:15:24 +08:00
sebv 4702906186 allowing app paths relative to appium root 2014-04-05 02:11:45 +08:00
Jonathan Lipps ce8adcfe6a update testsuite to use 1.0-style caps
- and fix various issues with specific tests
2014-04-03 18:55:49 -07:00
jonahss ff30a5288b -android uiautomator locator strategy 2014-04-02 14:27:49 -07:00
Isaac Murchie 2043324473 Fix setWindow for Android 2014-03-31 10:59:11 -07:00
Jonathan Lipps ec563bd2b8 add real xpath support for android
- relies on xpath support for ios pull request
- adds support under the '-real xpath' locator strategy
- deprecates the original xpath strategy, which will be replaced in 1.0
- because we have no way to get a dom fragment starting from an element,
  this strategy will only work for root-level queries
2014-03-28 10:29:48 -07:00
Jonathan Lipps 36fbeca8c1 update android xml source to have class names as node names rather than just 'node' 2014-03-28 10:29:48 -07:00
Jonathan Lipps 78f3a43982 add test for existing xml source behavior 2014-03-28 10:29:48 -07:00
jonahss 878497d63f accessibility_id -> accessibility id 2014-03-27 15:05:17 -07:00
jonahss 0ff63ff003 -ios_uiautomation -> -ios uiautomation 2014-03-27 14:42:14 -07:00
Dylan Lacey 9a7594870c Added deprecation warning for tag name
Add deprecation warnings for class name, tag name locator strategies.

Deprecations warnings will now be thrown for:
* 'tag name' in the native context
* 'class name' in the native context
* 'class name' in the web context

'class_name' is now a valid locator strategy for checkValidLocStrat

Add test for new class name locator
rename createCommand createGetElementCommand
Adding unit tests for new exception throwing
Add test for incorrect UIA class names
2014-03-25 18:07:02 -07:00
jonahss 1eba0fc45f readded some tests, since they pass now 2014-03-24 11:11:42 -07:00
jonahss 273a008b95 add accessibility_id loc strat 2014-03-24 11:11:04 -07:00
jonahss 6b0e9708ab add -ios_uiautomation locator strategy 2014-03-21 15:44:09 -07:00
Jonathan Lipps 45c2bd346c Merge pull request #2117 from paymand/remove_fast_clear
Removed 'fastClear' capability.
2014-03-21 09:37:55 -07:00
Payman Delshad a9d1e74f63 Removed 'fastClear' capability.
No need for 'fastClear' anymore. Current modes are:
1. fullReset: Reinstall the app.
2. noReset: Don't reinstall, keep app data.
3. fastReset (!fullReset && !noReset): Don't reinstall the app, but clear the app data (pm clear).
2014-03-21 13:02:43 +01:00
Jonathan Lipps 035d2fe8e7 unquarantine toggle tests. they're not too flakey.. maybe 2014-03-20 17:05:09 -07:00
Payman Delshad 5a9a45d6b0 Fix for issue #2085. Use "mobile: reset" in beforeEach(). 2014-03-20 14:22:55 +01:00
Jonathan Lipps d3881987ff fix tests which rely on the desired caps which no longer exist 2014-03-17 15:49:33 -07:00
Jonathan Lipps 482d24e0e1 add packageAndLaunchActivity support for selendroid
also convert our tests to use this by default so that it's tested
also move it to after prepareDevice so we make sure to run adb commands
with the appropriate device id etc
fix #2083, cc @bootstraponline
2014-03-17 15:15:48 -07:00
bootstraponline 6494df98d6 Android mobile push & pull
Ruby examples:

mobile :pushFile, data: Base64.encode64('test ruby'), path: '/data/local/tmp/test.txt'

pull_result = mobile :pullFile, path: '/data/local/tmp/test.txt'
Base64.decode64 pull_result
2014-03-14 15:09:13 -04:00
Payman Delshad 113fe5ce10 Added support for touch{Down|Up|Move} on Android. 2014-03-07 15:10:52 +01:00
Jonathan Lipps 7adcac31a7 fix websocket bug and make sure named apps clobber device in caps 2014-03-03 16:41:46 -08:00
bootstraponline cce7ee0126 Android longClick x, y, and duration support
Ruby examples:

mobile :longClick, element: el.ref

mobile :longClick, element: el.ref, duration: 3000

mobile :longClick, x: 400, y: 297, duration: 3000

mobile :longClick, x: 0.5, y: 0.244
2014-02-27 16:18:05 -05:00
Jonathan Lipps 2befd7d314 fix regular chrome startup 2014-02-24 17:10:43 -08:00
Jonathan Lipps d498d7df31 fix some failing android tests 2014-02-24 16:58:04 -08:00
Jonathan Lipps 21c9242fb6 finish android hybrid support
and refactor android webview tests to work for android as well as selendroid
2014-02-24 14:59:40 -08:00
Jonathan Lipps cedac5d8b7 work on getting chromedriver accessing webviews 2014-02-24 14:59:39 -08:00
Jonathan Lipps 6f4f275180 don't fail test if we can't find strings.xml (fix #1905)
also, make sure apidemos tests run as android even if DEVICE isn't set
2014-02-14 10:54:03 -08:00
sebv 88479e04fa reshuffling tests 2014-02-07 12:51:20 +08:00
sebv 968576af3d jshinting with white=true 2014-01-30 16:58:19 +08:00
sebv 714e24c789 Test reformatting, step2. 2014-01-30 16:55:47 +08:00
sebv 6695dfe5fb Refactored tests to use wd promise-chain api 2014-01-14 04:31:19 +08:00
Jonathan Lipps 5981667cca add support for doing web testing against android stock browser 2014-01-06 18:20:17 -08:00
Jonathan Lipps 17d88ee6da remove duplicate test and fix isScreenLocked test 2013-12-04 11:42:45 -08:00
Jonathan Lipps a88313aa31 fix screen unlocking test 2013-11-21 17:24:26 -08:00
Jonathan Lipps 8e5a0bb1f9 more cleanup including selendroid update 2013-10-22 11:29:19 -07:00
Jonathan Lipps 5ad5df488b move all android-related files together into devices/android 2013-10-17 12:33:49 -07:00
Jonathan Lipps 158c4887bd device-state not device_state 2013-10-17 10:30:11 -07:00
Jonathan Lipps d0774ea4dc make some files pass the linter 2013-10-17 10:30:09 -07:00
Jonathan Lipps 048ee24b68 create driverblock.it to handle async mocha errs 2013-09-26 14:35:03 +01:00
filmaj 0d3950994a Robust, device-friendly unlock. Added gitsubmodule for unlock_apk.
reset.sh now builds the apk. adbs unlockScreen method now invokes
unlock.apk. added a new small, focused module called device_state to handle determining state of emulators/devices. currently has a "isScreenLocked" function. unlockScreen in adb.js now 1) checks if screen is locked or not first before doing anything and 2) uses unlock.apk to do the unlocking.
2013-09-19 14:09:45 -07:00