Commit Graph

540 Commits

Author SHA1 Message Date
Jonathan Lipps
bf4dcae4f1 add rest endpoints to handle mobile: methods in addition to executeScript 2014-04-02 12:15:34 -07:00
Jonathan Lipps
e9bd1403d1 Merge pull request #2212 from landryraccoon/master
Allow changing of ports with an environment variable
2014-04-01 14:45:07 -07:00
Jonathan Lipps
6e154f4f81 Merge pull request #2229 from vgrigoruk/vgrigoruk-master
Fixes #2131.
2014-04-01 09:55:09 -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
Jonathan Lipps
8ff9a0439d Merge pull request #2223 from jlipps/master
check that iOS deviceName matches instruments's list before launching
2014-03-31 15:38:56 -07:00
Jonathan Lipps
39949dc835 check we can launch a device based on user's caps and throw a nice error if not (fix #2114) 2014-03-31 12:15:34 -07:00
Isaac Murchie
2043324473 Fix setWindow for Android 2014-03-31 10:59:11 -07:00
Jonathan Lipps
f78cee9644 Merge pull request #2211 from jlipps/real-xpath-android
Real XML-based XPath for Android
2014-03-28 15:07:50 -07:00
Linzhen Xuan
148e5f3ba3 Modify scroll to take element argument.
Originally, scroll scrolls insider the first ScrollView. However, most of our ScrollViews is CollectionView, or TableView. So, we got error that the ScrollView could not found, although there are multiple "ScrollViews".

We also need to able to scroll insider different scrollviews.
2014-03-28 17:47:55 -04:00
Tim Wang
2349105a67 Fix omitted var keyword 2014-03-28 13:53:38 -07:00
Tim Wang
0150fc7d6d Allow changing of ports with an environment variable 2014-03-28 12:01:00 -07:00
Jonathan Lipps
97710ca829 Merge pull request #2209 from sebv/async-queue
Ios command queue using Async.queue
2014-03-28 10:45:05 -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
sebv
5e44dee358 rewrote screenshot logic 2014-03-29 00:25:06 +08:00
Jonathan Lipps
aba0f5a191 use indexpath find retry even when trying to find a single element that becomes stale 2014-03-28 08:00:52 -07:00
Jonathan Lipps
da4e83cd9d use our own fork of node-js2xmlparser 2014-03-28 07:55:31 -07:00
sebv
767a6bd992 reimplemented queue with async.js 2014-03-28 22:53:47 +08:00
Jonathan Lipps
9de846cf1c add deprecation warnings for old page source and xpath methods 2014-03-27 16:29:55 -07:00
Jonathan Lipps
af2427a03c add real xpath support making use of getElementByIndexPath
this depends on https://github.com/appium/appium-uiauto/pull/11
also depends on https://github.com/michaelkourlas/node-js2xmlparser/pull/10
partially addresses issue 2155
2014-03-27 16:29:55 -07:00
jonahss
878497d63f accessibility_id -> accessibility id 2014-03-27 15:05:17 -07:00
jonahss
0ff63ff003 -ios_uiautomation -> -ios uiautomation 2014-03-27 14:42:14 -07:00
Jonathan Lipps
e06f65b89a Merge pull request #2198 from d0lfin/master
Move reset timeout from "global before" to "session before"
2014-03-27 11:19:09 -07:00
dolf
28c5fd51c3 Move reset timeout from global before to session before 2014-03-27 15:38:04 +04:00
sebv
725c451a88 fixing strategy name mismatch 2014-03-27 11:59:46 +08: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
cba8bc80ae fix typeof syntax 2014-03-25 12:12:11 -07:00
Jonathan Lipps
dc5c08ef5c Merge pull request #2166 from DylanLacey/no_json_please
No JSON please
2014-03-25 12:11:24 -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
Jonathan Lipps
d6b6ab1809 Merge pull request #2159 from Jonahss/accessibility_idLocStrat
accessibility_id location strategy
2014-03-25 10:41:28 -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
Dylan Lacey
0cbdb9b2d4 Log a deprecation message when mobileSource is called with the JSON
type, asking users to use XML type instead.
2014-03-25 03:18:46 -07: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
sebv
a5eb53968a Making the builtin app backup path configurable 2014-03-25 02:04:50 +08:00
bootstraponline
02155f137a Merge pull request #2144 from jlipps/master
fix sudo behavior for windows (fix #2137)
2014-03-24 13:55:10 -04:00
Jonathan Lipps
f44f586467 Merge pull request #2128 from midopa/master
fix, if appium url set in nodeconfig, dont autopopulate
2014-03-24 10:42:40 -07:00
Jonathan Lipps
9450e18c5a fix sudo behavior for windows (fix #2137) 2014-03-24 10:37:15 -07:00
bootstraponline
75faec10e5 Fix EXDEV error when using renameSync to move 2014-03-24 09:42:43 -04:00
sebv
1fb38b556a fixing sudo grunt authorize 2014-03-23 16:42:12 +08:00
Jonathan Lipps
a5ef609033 Merge pull request #2126 from jlipps/master
more sudo fixes
2014-03-23 01:25:12 -07:00