Commit Graph

58 Commits

Author SHA1 Message Date
Jonathan Lipps
9fd48fb9f8 get rid of native tag name in favor of class name 2014-04-18 11:31:49 -07:00
Jonathan Lipps
9240c32874 fix up use of correct method in toggle tests 2014-04-15 13:38:40 -07:00
Jonathan Lipps
356b7f9df6 separate out chrome tests since they require a different emu 2014-04-15 13:09:55 -07:00
Jonathan Lipps
c293cfe2f2 update our testsuite to use new native methods
instead of deprecated mobile methods.
Also add a few server methods that were accidentally
left out before
2014-04-14 16:50:52 -07:00
Jonathan Lipps
dc44f68214 update npm deps and fix some tests (fix #2287) 2014-04-14 14:50:49 -07:00
Jonathan Lipps
a780dd9549 use forthcoming wd geolocation methods 2014-04-11 09:56:29 -07:00
Jonathan Lipps
3583347584 camel-case app-(wait-)activity 2014-04-10 15:38:24 -07:00
Jonathan Lipps
318617819f change app-package and app-wait-package to appPackage and appWaitPackage 2014-04-10 15:20:24 -07:00
Jonathan Lipps
0312620d09 remove 'mobile: localScreenshot' 2014-04-09 18:43:02 -07:00
Jonathan Lipps
e2c6a9919b remove json page source in favor of xml
and fix a bug in android bootstrap's xpath that snuck in last time
2014-04-09 18:07:02 -07:00
Jonathan Lipps
958aac7e09 remove old xpath support and promote -real xpath to xpath 2014-04-09 16:15:54 -07:00
Jonathan Lipps
6725332707 don't use windowHandles for switching to/from webview 2014-04-08 12:02:44 -07:00
Jonathan Lipps
cb358bf31e fix android multiaction tests by using new wd api 2014-04-07 22:13:09 -07:00
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