Commit Graph

388 Commits

Author SHA1 Message Date
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
Jonathan Lipps 5c265bc459 ensure that app is always force-stopped before uninstalling apk (fix #1757) 2014-03-25 13:28:28 -07:00
Jonathan Lipps 0b4554ce4e Merge pull request #2162 from bootstraponline/reset_from_cap
Enable fullReset and noReset from caps
2014-03-25 12:51:06 -07:00
bootstraponline 6995aa868f Set fullReset and noReset from caps 2014-03-25 15:47:36 -04:00
Jonathan Lipps 01395f1391 Merge pull request #2164 from sebv/log-colors
Avoiding passing LogNoColors/LogColors everywhere.
2014-03-25 12:21:38 -07:00
Jonathan Lipps 066492ad42 Merge pull request #2167 from sebv/safer-rimraf
safer rimraf
2014-03-25 12:07:51 -07:00
Jonathan Lipps 5bc344d74e Merge pull request #2170 from paymand/fast_reset_remote_apk
Make sure the app is always signed *before* getting the MD5 hash.
2014-03-25 11:46:40 -07:00
Jonathan Lipps d417033529 Merge pull request #2173 from mobiware/ios-full-reset-prefs5
Fix #2133
2014-03-25 10:54:19 -07:00
Romain Criton 390cf0e948 Fix #2133 2014-03-25 17:29:28 +00:00
Payman Delshad 48a8110bcb Make sure the app is always signed *before* getting the MD5 hash. 2014-03-25 14:01:14 +01:00
sebv 9936a039cc safer rimraf 2014-03-25 16:23:58 +08:00
sebv 34816eaa70 Avoiding passing LogNoColors/LogColors everywhere. 2014-03-25 11:34:34 +08:00
jonahss 273a008b95 add accessibility_id loc strat 2014-03-24 11:11:04 -07:00
bootstraponline 75faec10e5 Fix EXDEV error when using renameSync to move 2014-03-24 09:42:43 -04:00
sebv cf783c5c82 Revert "Avoiding passing LogNoColors/LogColors everywhere."
This reverts commit bdb63583de.
2014-03-23 11:33:19 +08:00
sebv 8bd5802fee Revert "safer rimraf"
This reverts commit 862ca490e5.
2014-03-23 11:32:26 +08:00
sebv 862ca490e5 safer rimraf 2014-03-22 20:48:33 +08:00
sebv bdb63583de Avoiding passing LogNoColors/LogColors everywhere. 2014-03-22 20:47:31 +08:00
jonahss ae670caf88 Fixed a bug where requesting an invalid locator strategy on android caused uiautomator to die unexpectedly. Added a test 2014-03-21 15:46:25 -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
Jonathan Lipps 0654ad8a62 Merge pull request #2118 from bootstraponline/leak
Prevent leaking state across executions
2014-03-21 09:35:47 -07:00
bootstraponline fb71904570 Format java according to bootstrap/.settings 2014-03-21 11:14:49 -04:00
bootstraponline 1f06f9244e Merge pull request #2115 from jlipps/master
misc fixes
2014-03-21 11:10:19 -04:00
bootstraponline 17e3fc3edb Prevent leaking state across executions 2014-03-21 11:05:50 -04:00
bootstraponline a259762835 Merge pull request #2116 from paymand/2085
Fixup for #2085. set isElement to false if getElement() throws.
2014-03-21 10:14:54 -04: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
Payman Delshad 60dae83db1 Fixup for #2085. set isElement to false if getElement() throws. 2014-03-21 11:30:52 +01:00
Jonathan Lipps 8beaa32022 if we can't find multiple webviews for clickWebCoords, just use whichever one is there (fix #1940) 2014-03-20 18:37:33 -07:00
Jonathan Lipps fc0e1e21f8 fix window handling in safari, needed to use new context logic
cc @imurchie
2014-03-20 18:13:43 -07:00
Jonathan Lipps 5ddc136a84 make sure we don't error out of pref setting too soon (HT @sebv) 2014-03-20 16:58:03 -07:00
Jonathan Lipps d0456ff938 Merge pull request #2099 from rgonalo/master
Allow to have more than one emulator started
2014-03-20 16:20:05 -07:00
Ruben Gonzalez Alonso b47154f89e Wait for emulator is ready after launching it 2014-03-20 16:39:38 +01:00
Ruben Gonzalez Alonso 872cf19c43 Allow to have more than one emulator started 2014-03-20 16:39:30 +01:00
Isaac Murchie f4f730e1ee Use contexts for switching native/web 2014-03-19 21:13:47 -07:00
bootstraponline b1f8021737 temp.path doesn't create the file 2014-03-19 14:21:38 -04:00
Jonathan Lipps de567ae5da make sure the tempdir exists before trying to write aligned apk to it 2014-03-19 10:52:01 -07:00
Ruben Gonzalez Alonso c4006189a4 Print all errors while starting emulator 2014-03-19 18:41:20 +01:00
Ruben Gonzalez Alonso b805773310 Add --avd-args option to launch avd with additional args 2014-03-19 18:41:20 +01:00
bootstraponline 9abcd247d6 Fix android process detection 2014-03-19 12:44:30 -04:00
Ethan Goldblum 3de0e8ab84 Pass quiet flag to fruitstrap when appium in quiet mode.
If appium is started with the quiet flag, this will now be propagated to
the fruitstrap install command.  Fruitstap can be very noisy when
installing app with a large number of resources in the bundle.
2014-03-18 12:47:52 -07:00
bootstraponline 1e71cf8c30 Fix Android uninstall detection
API 19 uses the following stdout message:

WARNING: linker: libdvm.so has text relocations. This is wasting memory and is a security risk. Please fix.
Success

That broke the simple stdout === 'Success' check.
2014-03-18 09:51:27 -04: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
Jonathan Lipps f14c5c9108 use adb's built-in isAppInstalled rather than one that doesn't work 2014-03-17 15:10:58 -07:00
Jonathan Lipps 426283aef8 fix getting logcat logs on selendroid 2014-03-17 14:28:14 -07:00
Jonathan Lipps 6a287a08e0 If we can't find the apple webview button in safari, just try and use the webview anyway 2014-03-17 11:58:48 -07:00
Jonathan Lipps 7a6670d7c5 realize what @dandoveralba was going for 2014-03-17 11:26:35 -07:00
bootstraponline 8367768680 Merge pull request #2082 from jlipps/master
fix jwpError (fix #2080)
2014-03-17 13:23:05 -04:00
Jonathan Lipps 8ef1922d73 fix jwpError (fix #2080) 2014-03-17 10:16:48 -07:00
Jonathan Lipps 9089f09831 new device launching strategy needs to use correct version
also, don't override retina/tall/64bit opts when user doesn't actually
pass in deviceName cap.
cc @dandoveralba
2014-03-17 10:10:08 -07:00