update for new uiauto command processing

This commit is contained in:
sebv
2014-06-18 22:15:15 +08:00
parent d7b63a6dc2
commit 7fd67af4e3
4 changed files with 13 additions and 5 deletions

View File

@@ -230,6 +230,14 @@ iOSController.findUIElementsByXpath = function (selector, ctx, many, curRetry,
};
iOSController.getSourceForElementForXML = function (ctx, cb) {
var _cb = cb;
cb = function (err, res) {
if (err) return cb(err);
// TODO: all this json/xml logic is very expensive, we need
// to use a SAX parser instead.
if (res.value) res.value = JSON.stringify(res.value);
_cb(err, res);
};
if (!ctx) {
this.proxy("au.mainApp().getTreeForXML()", cb);
} else {

View File

@@ -43,8 +43,8 @@
"adm-zip": "~0.4.4",
"appium-adb": "1.0.2",
"appium-atoms": "~0.0.5",
"appium-instruments": "1.1.0-beta1",
"appium-uiauto": "1.2.0-beta3",
"appium-instruments": "1.1.0-beta2",
"appium-uiauto": "1.2.0-beta4",
"argparse": "~0.1.15",
"async": "~0.9.0",
"binary-cookies": "~0.1.1",
@@ -101,7 +101,7 @@
"chai-as-promised": "~4.1.1",
"glob": "~4.0.0",
"grunt-contrib-jshint": "~0.10.0",
"grunt-jscs-checker": "~0.4.4",
"grunt-jscs-checker": "~0.5.1",
"grunt-mocha-test": "~0.11.0",
"js-yaml": "~3.0.2",
"mocha": "~1.20.0",