mirror of
https://github.com/appium/appium.git
synced 2026-05-03 08:51:18 -05:00
update for new uiauto command processing
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user