Commit Graph

490 Commits

Author SHA1 Message Date
Jonathan Lipps a5ef609033 Merge pull request #2126 from jlipps/master
more sudo fixes
2014-03-23 01:25:12 -07: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
Jonathan Lipps ec1affff76 Merge pull request #2104 from Jonahss/ios_uiautomationLocStrat
Ios uiautomation loc strat
2014-03-21 16:33:21 -07:00
Jonathan Lipps 6d2183cd9f also disallow use of appium if it was even installed with sudo 2014-03-21 16:08:42 -07: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 f10e919597 make sure appium won't run under sudo. Too many people run into problems with that 2014-03-21 14:55:48 -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 fd24d65ffe make sure caps are sanitized (fix #2103) 2014-03-20 16:58:03 -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
Jonathan Lipps ebc89ebe83 Merge pull request #2049 from imurchie/isaac-contexts
Add contexts for switching to webviews
2014-03-20 11:28:02 -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
Jonathan Lipps 22912968d8 fix fastReset going undefined between sessions (fix #2087) 2014-03-20 00:01:30 -07:00
Jonathan Lipps c9fc1da595 bring back mobile reset 2014-03-19 23:54:29 -07: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
Jonathan Lipps 9065d55a2d Merge pull request #2034 from DylanLacey/master
Prepare for mjsonwp capabilities (platformName in particular)
2014-03-19 09:47:59 -07:00
bootstraponline 9abcd247d6 Fix android process detection 2014-03-19 12:44:30 -04:00
Dylan Lacey 21c8feb8e5 Add new device and automation capabilities, deprecate old caps
Added deprecation warning for older style caps.  Warnings are output
once only for a given function or capability.  A final trailing log
message is released saying there were deprecations.

Busted unit tests into smaller tests

Capabilities are now an object, created by passing the capabilities
to Capabilities.  Properties on that object are copied into the Capabilities object so the API is identical.

Store the value of platformVersion as version.
2014-03-19 09:35:36 -07: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
Jonathan Lipps a7a11c4a64 allow zipfiles to give us app path even when it's not explicitly mentioned as an archive member 2014-03-17 11:18:50 -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
Jonathan Lipps 255ad390b0 Merge pull request #2028 from bootstraponline/android_default
Parse Android package and launch activity from apk
2014-03-17 09:37:20 -07:00
bootstraponline 497ab92f4c Merge pull request #2076 from dandoveralba/fix703
Fix for Instruments Before 7.1SDK
2014-03-16 12:19:04 -04:00
bootstraponline 9fd7718707 Parse Android package and launch activity from apk
Update logging

Add null guard

Prevent null waitPkg
2014-03-16 00:14:25 -04:00