Commit Graph

36 Commits

Author SHA1 Message Date
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