mirror of
https://github.com/appium/appium.git
synced 2026-02-06 17:48:56 -06:00
remove 'mobile: waitForPageLoad'
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
@@ -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);
|
||||
};
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user