mirror of
https://github.com/appium/appium.git
synced 2026-02-06 17:48:56 -06:00
remove 'mobile: fireEvent'
This commit is contained in:
@@ -191,10 +191,6 @@ androidController.touchMove = function (elementId, x, y, cb) {
|
||||
this.proxy(["element:touchMove", opts], cb);
|
||||
};
|
||||
|
||||
androidController.fireEvent = function (evt, elementId, value, cb) {
|
||||
cb(new NotYetImplementedError(), null);
|
||||
};
|
||||
|
||||
androidController.getStrings = function (cb) {
|
||||
this.proxy(["getStrings"], cb);
|
||||
};
|
||||
|
||||
@@ -244,7 +244,6 @@ Firefox.prototype.notImplementedCmds = function () {
|
||||
, 'findElements'
|
||||
, 'findElementFromElement'
|
||||
, 'findElementsFromElement'
|
||||
, 'fireEvent'
|
||||
, 'complexTap'
|
||||
, 'flick'
|
||||
, 'touchLongClick'
|
||||
|
||||
@@ -523,16 +523,6 @@ iOSController.getStrings = function (cb) {
|
||||
});
|
||||
};
|
||||
|
||||
iOSController.fireEvent = function (evt, elementId, cb) {
|
||||
if (this.isWebContext()) {
|
||||
this.useAtomsElement(elementId, cb, function (atomsElement) {
|
||||
this.executeAtom('fireEvent', [evt, atomsElement], cb);
|
||||
}.bind(this));
|
||||
} else {
|
||||
cb(new NotImplementedError(), null);
|
||||
}
|
||||
};
|
||||
|
||||
iOSController.executeAtom = function (atom, args, cb, alwaysDefaultFrame) {
|
||||
var counter = this.executedAtomsCounter++;
|
||||
var frames = alwaysDefaultFrame === true ? [] : this.curWebFrames;
|
||||
|
||||
@@ -321,14 +321,6 @@ exports.touchMove = function (req, res) {
|
||||
}
|
||||
};
|
||||
|
||||
exports.fireEvent = function (req, res) {
|
||||
logCustomDeprecationWarning('mobile method', 'fireEvent',
|
||||
"fireEvent will be removed in a future version of Appium");
|
||||
var elementId = req.body.element
|
||||
, evt = req.body.event;
|
||||
req.device.fireEvent(evt, elementId, getResponseHandler(req, res));
|
||||
};
|
||||
|
||||
exports.mobileTap = function (req, res) {
|
||||
req.body = _.defaults(req.body, {
|
||||
tapCount: 1
|
||||
@@ -1072,7 +1064,6 @@ var mobileCmdMap = {
|
||||
, 'lock' : exports.lock
|
||||
, 'background' : exports.background
|
||||
, 'keyevent' : exports.keyevent
|
||||
, 'fireEvent': exports.fireEvent
|
||||
, 'find': exports.find
|
||||
, 'waitForPageLoad': exports.waitForPageLoad
|
||||
, 'currentActivity': exports.getCurrentActivity
|
||||
|
||||
Reference in New Issue
Block a user