102 Commits
Author SHA1 Message Date
Jonathan Lipps 0606c2b2a6 make sure we call back with an error and not a string 2013-08-05 18:07:38 -07:00
Chris Williams 1b18834374 Change Android Bootstrap README to include SDK version flag for compiling with mvn
If version isn't specified, Maven tries to compile with an older version of the Android SDK.
2013-07-31 15:00:28 -04:00
rockbot 1fb8dc5e7d updates error message to account for bad address error
removes _.bind in favor of the native Object.prototype.bind
2013-07-25 18:20:55 -04:00
bootstraponline 4efdac2ffb Use uiautomator screenshot
uiautomator has built in support for taking screenshots. There's no need for an
external jar.
2013-07-25 13:27:40 -04:00
bootstraponline 325863173e Use uiautomator pressKeyCode
The adb solution doesn't wait until the key has finished which causes problems
in tests. uiautomator's built in pressKeyCode is much better.
2013-07-24 17:44:44 -04:00
bootstraponline 657a16f187 Dump without disconnecting the current session
The old way of viewing the page source broke the current uiautomator session. A
lot of effort went into detecting a failed session and then restarting. It turns
out we can access the source from within a session.
2013-07-24 17:29:43 -04:00
bootstraponline 81ca4313da Use pressBack
pressBack blocks until back is pressed. This is much better than the old
implementation which returns immediately.
2013-07-24 17:07:16 -04:00
bootstraponline 8e6df495d4 Improve mobile find scroll
Mobile find scroll no longer fails if nothing is scrollable on the page. Instead
if there's a match, then that match is returned even if we didn't have to
scroll.

Fix NPE in error reporting. The error message may be null.

Fix spacing
2013-07-20 09:07:05 -04:00
Jonathan Lipps 562561b584 when activity launching fails, try again with a . 2013-07-19 15:23:05 -07:00
Jonathan Lipps a2f2829aec fall back to adb.startApp if selendroid's instrumentation doesn't launch it in 1.8s 2013-07-10 10:40:33 -07:00
Zhou 787d4e2bd4 Fix Android XPath issue. 2013-07-10 19:39:11 +08:00
Zhou 68b787601a Fix the Android XPath strings issue.
Now it could work with XPath: android.view.View and android.widget.AdapterView.
2013-07-10 19:13:43 +08:00
bootstraponline 1c000d2c48 Fix app starting logic
Fix #862
2013-07-08 10:06:01 -04:00
bootstraponline 39e271cda4 Merge pull request #849 from mutualmobile/android_scrollTo_support
Added scrollTo support for Android.
2013-07-03 08:20:41 -07:00
Eric Plaster d2282486af Updated Exception handling in scrollto for android 2013-07-03 10:12:44 -05:00
Jonathan Lipps 08350de22c make sure to discard series info here so it doesn't get passed on 2013-07-02 16:11:45 -07:00
Jonathan Lipps a309fc6c5b Merge pull request #833 from jlipps/chrome
Chrome automation support for Android
2013-07-01 18:22:12 -07:00
Jonathan Lipps 3f1ad9bda8 clean up callback structure 2013-07-01 17:44:56 -07:00
Jonathan Lipps ea650a45f6 send commands to chrome as javascript atoms via remote debugger 2013-07-01 17:33:04 -07:00
bootstraponline 47314964ca Use === not == 2013-07-01 20:32:07 -04:00
bootstraponline 8f42d70994 Fix #832
Allow fully qualified activities

Fix selendroid
2013-06-30 16:05:01 -04:00
Adriano Bonat e21bfb97a7 implemented touch long press for Android. 2013-06-29 17:29:31 -03:00
bootstraponline ba7e80e373 Fix large JSON 2013-06-26 20:22:16 -04:00
bootstraponline 260fc42ea1 Fix strings for on device APK 2013-06-26 10:32:07 -04:00
Jonathan Lipps 68be1b556b Merge pull request #812 from bootstraponline/keystore_md5
Keystore md5
2013-06-25 15:46:50 -07:00
bootstraponline c2faa91e94 Keystore md5 2013-06-25 17:03:30 -04:00
Jonathan Lipps d3f1d5c149 fix some android start activity issues 2013-06-25 10:27:59 -07:00
bootstraponline 93935aa209 jarsigner 2013-06-24 20:07:31 -04:00
bootstraponline daf8ba84ba Set max buffer to Math.pow(2,19) 2013-06-19 13:03:23 -04:00
bootstraponline 9f91c7df41 Fix selendroid start
Wrong:
adb shell am instrument -e main_activity
'com.thehomedepot..Foundation.Controller.SetServicesActivity'
com.thehomedepot.selendroid/io.selendroid.ServerInstrumentation

Fixed:
adb shell am instrument -e main_activity
'com.thehomedepot.Foundation.Controller.SetServicesActivity'
com.thehomedepot.selendroid/io.selendroid.ServerInstrumentation
2013-06-19 12:52:03 -04:00
bootstraponline d43cf58106 Fix activity detection
The old logic was completely broken.

The pkg must not be prepended to the activity. This is invalid.
shell am start -n
com.thehomedepot/com.thehomedepot..Foundation.Controller.SetServicesActivity

The activity must not have the first bit chopped off. This is invalid:
Foundation.Controller.SetServicesActivity

The correct command is adb shell am start -n
com.thehomedepot/.Foundation.Controller.SetServicesActivity

Notice there's no prepended activity and that the string after the / starts with
a "."

Fixes #782
2013-06-18 18:06:32 -04:00
bootstraponline 3db7a09247 Fix #776 2013-06-18 16:28:26 -04:00
bootstraponline fb95cbd953 Add search strings.xml value
Useful for finding all keys that contain a common string.

mobile :searchValue, 'preferences_delete'
2013-06-17 13:40:16 -04:00
bootstraponline 6cb50d8edf Add mobile resolveId
Scroll requires the text in advance so resolveId is required. Ruby example:

mobile :resolveId, 'my_id'
2013-06-17 12:49:02 -04:00
bootstraponline 55c74dbf8d Add search id
Ruby example of finding all strings.xml ids that contain the value feedback.

mobile :searchId, 'feedback'
2013-06-17 11:52:12 -04:00
rorp 47c3cbf3fb Fixed a typo in GetDeviceSize Android handler 2013-06-16 15:30:14 -07:00
Jonathan Lipps 1c789c2979 use cross-platform path.resolve in adb.js 2013-06-12 15:04:59 -04:00
Jonathan Lipps 49a93db50d selendroid needs to use this.adbCmd 2013-06-07 13:45:12 -07:00
bootstraponline 92f40c07d1 Quote adb push path 2013-06-07 11:03:03 -04:00
bootstraponline 38e98a64cf Use adbCmd 2013-06-07 08:29:11 -04:00
Jonathan Lipps d3fc5a081d update appium to reflect changes in new selendroid 2013-06-06 09:39:13 -07:00
bootstraponline e422d23435 Spawn breaks with quotes and exec breaks without them 2013-06-06 10:52:07 -04:00
bootstraponline 404eeda86c Quote make strings command 2013-06-06 10:39:41 -04:00
bootstraponline bc34c15ad6 Quote binary location to fix space in path
Log runBootstrap command
2013-06-06 10:39:41 -04:00
bootstraponline 6b9419e3f5 Use the same error message on iOS and Android
Fixes #689
2013-06-05 16:42:57 -04:00
bootstraponline c4568f809a Wait for activity takes an array
Fix #691
2013-06-05 16:02:33 -04:00
Jonathan Lipps ab9ad3eed3 make noReset sound and act like what's intended (fix #651) 2013-06-04 15:02:54 -07:00
Jonathan Lipps 92682e41e4 resend last command for adb, not for android (fix #705) 2013-06-04 13:16:24 -07:00
bootstraponline df92440068 Merge pull request #703 from bootstraponline/675
Fix java.lang.IllegalStateException: UiAutomationService not connected.
2013-06-04 08:11:35 -07:00
Jonathan Lipps d88a0ea169 java style fixes 2013-06-04 07:56:56 -07:00