Adding hideSoftKeyboard for android, updating package.json and updating appium-adb submodule

This commit is contained in:
Moiz Virani
2014-06-09 12:01:23 -07:00
parent 4636738b41
commit c491bf24af
3 changed files with 11 additions and 3 deletions

View File

@@ -677,8 +677,16 @@ androidController.setLocation = function (latitude, longitude, altitude, horizon
});
};
// keyName parameter only used for iOS. Please ignore it for android.
androidController.hideKeyboard = function (keyName, cb) {
cb(new NotYetImplementedError(), null);
this.adb.isSoftKeyboardPresent(function (err, isKeyboardPresent) {
if (err) return cb(err);
if (isKeyboardPresent) {
this.back(cb);
} else {
return cb(new Error("Soft keyboard not present, cannot hide keyboard"));
}
}.bind(this));
};
androidController.url = function (url, cb) {

View File

@@ -41,7 +41,7 @@
},
"dependencies": {
"adm-zip": "~0.4.4",
"appium-adb": "~1.0.1",
"appium-adb": "~1.0.2",
"appium-atoms": "~0.0.5",
"appium-instruments": "~1.0.0",
"appium-uiauto": "~1.0.0",