Dylan Lacey
148336fc04
Use the new capabilities throughout the codebase.
...
Every entry in `Capabilities.capabilityConversions` is now used to
convert capabilities into the args array.
Change version to versionVersion.
Change device to platformName
Stop aliasing platformVersion to version in Capabilities.js
2014-04-01 16:42:28 -07:00
Vitalii Grygoruk
b70dc24eec
Mised toLowerCase for iOS.js (+2 squashed commits)
...
Squashed commits:
[fba9410 ] Making sure toLowerCase() is still used for chrome.js
[0cbfa68 ] We don't need toLowerCas() for app argument, as it is used for passing CFBundleIdentifier, fixes #2131
2014-04-01 09:37:49 +02:00
Isaac Murchie
2043324473
Fix setWindow for Android
2014-03-31 10:59:11 -07:00
Jonathan Lipps
ec563bd2b8
add real xpath support for android
...
- relies on xpath support for ios pull request
- adds support under the '-real xpath' locator strategy
- deprecates the original xpath strategy, which will be replaced in 1.0
- because we have no way to get a dom fragment starting from an element,
this strategy will only work for root-level queries
2014-03-28 10:29:48 -07:00
Jonathan Lipps
ff0dcd4292
deprecate use of json page source
2014-03-28 10:29:48 -07:00
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
jonahss
878497d63f
accessibility_id -> accessibility id
2014-03-27 15:05:17 -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
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
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
Payman Delshad
48a8110bcb
Make sure the app is always signed *before* getting the MD5 hash.
2014-03-25 14:01:14 +01: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
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
bootstraponline
fb71904570
Format java according to bootstrap/.settings
2014-03-21 11:14:49 -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
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
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
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
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
bootstraponline
40c8c6b8bc
Ensure apks are run through zipalign
2014-03-15 15:44:29 -04: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
sebv
be6f77b354
Added timeout to uninstallApk
2014-03-11 21:46:26 +08:00
sebv
f61a321d2e
bugfix, context was wrong
2014-03-11 21:44:59 +08:00
Jonathan Lipps
80ebe34278
add enablePerformanceLogging cap for chrome/android hybrid, so we can get performance logs
2014-03-07 11:52:20 -08:00
bootstraponline
d70f8ac01d
Clean up debug logging
2014-03-07 15:10:53 +01: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