Commit Graph

15 Commits

Author SHA1 Message Date
Payman Delshad
4c707ad4e3 el.tag_name on Android should return element's className. 2014-02-03 16:01:05 +01:00
sebv
d971f72c46 stricter jshint rules enforcable from editor 2014-01-29 14:03:34 +08:00
Payman Delshad
f4a1b6fcaf Implemented drag for iOS.
- Use same drag API on iOS and Android.
- Fixed some indentations.
2014-01-21 10:49:18 +01:00
Romain Criton
2d161528d8 Implementing mobile:background command for Android and Selendroid
Replay commit 1c6b495cd2

Remove debug log

Tidy up spaces according to pull request review

Fixed indentation according to Appium project style guide (2 spaces indent)

Fixed error management in background method

Add an argument to ADB.startApp in order to choose whether to stop the app prior to starting it

Conflicts:
	lib/devices/android/adb.js

Refactored mobile:background method for Android: using ADB.startApp rather than directly issuing am start command to ADB shell, do not return to callback until app is back to foreground

Mimick the launcher start intent for the app when starting it

The Android launcher uses the following settings to start apps:
- MAIN action
- LAUNCHER category
- FLAG_ACTIVITY_NEW_TASK
- FLAG_ACTIVITY_RESET_TASK_IF_NEEDED
Without those settings there were discrepancies between Selendroid and
Android when trying to bring the app back to foreground: it would not
bring back the existing Activity stack but create new activities

Adapt background code to new startApp signature

Added "retry" argument

Missing space

Spaces after if

Fixed spacing issue

Split long line
2014-01-16 22:59:57 +00:00
Jonathan Lipps
99f0c16d9a make sure we don't discount web locators in webviews 2013-12-04 12:24:31 -08:00
Jonathan Lipps
e207483a25 allow alternative type of clear through fastClear: false cap
fix #1514
2013-11-21 13:33:13 -08:00
Chi Thu Le
f8e2909ed2 Moved getCurrentActivity to android-common.js 2013-11-08 20:39:37 +01:00
Jonathan Lipps
d29ea809ba move logcat code into android-common
so that selendroic an use it as well
2013-11-06 11:12:59 -08:00
Jonathan Lipps
199d7e40b9 add tests for #1413, also fix jsonwp misinterpretation
logTypes should return array of types, not array of objects
cc @ecomrobotics
2013-11-05 12:00:40 -08:00
eComRobotics Team
caf7d789e9 Support for iOS logs for devices and simulators
Fix after comments by @jlipps

Fix require section
2013-11-05 03:16:44 +04:00
Payman Delshad
105fc6a5f1 (Android) Correct handling of 'element{Displayed|Enabled|Selected}'. 2013-10-25 19:21:13 +02:00
Jonathan Lipps
d2a362118a fix a bunch of refactoring issues 2013-10-22 11:29:19 -07:00
Jonathan Lipps
d63671ceee finish main rewrite of adb.js 2013-10-22 11:29:19 -07:00
Jonathan Lipps
f7c8f9e6cb we don't use webatoms for android now that we use chrome 2013-10-22 11:29:18 -07:00
Jonathan Lipps
138f22f319 move android controller methods into their own file 2013-10-22 11:29:18 -07:00