remove 'mobile: waitForPageLoad'

This commit is contained in:
Jonathan Lipps
2014-04-09 18:40:03 -07:00
parent afe4674f4a
commit 2871411d90
3 changed files with 0 additions and 18 deletions

View File

@@ -399,10 +399,6 @@ androidController.getPageSource = function (cb) {
});
};
androidController.waitForPageLoad = function (timeout, cb) {
this.proxy(["waitForIdle", {timeout: timeout}], cb);
};
androidController.getAlertText = function (cb) {
cb(new NotYetImplementedError(), null);
};

View File

@@ -1035,10 +1035,6 @@ iOSController.getPageSource = function (cb) {
}
};
iOSController.waitForPageLoad = function (timeout, cb) {
this.proxy("au.waitForPageLoad(" + timeout + ")", cb);
};
iOSController.getAlertText = function (cb) {
this.proxy("au.getAlertText()", cb);
};

View File

@@ -627,15 +627,6 @@ exports.getPageSource = function (req, res) {
req.device.getPageSource(getResponseHandler(req, res));
};
exports.waitForPageLoad = function (req, res) {
logCustomDeprecationWarning('mobile method', 'waitForPageLoad',
"waitForPageLoad will be removed in a future version of Appium.");
req.body = _.defaults(req.body, { timeout: 30 });
var timeout = req.body.timeout;
req.device.waitForPageLoad(timeout, getResponseHandler(req, res));
};
exports.getAlertText = function (req, res) {
req.device.getAlertText(getResponseHandler(req, res));
};
@@ -1065,7 +1056,6 @@ var mobileCmdMap = {
, 'background' : exports.background
, 'keyevent' : exports.keyevent
, 'find': exports.find
, 'waitForPageLoad': exports.waitForPageLoad
, 'currentActivity': exports.getCurrentActivity
, 'findElementNameContains': exports.findElementNameContains
, 'installApp': exports.installApp