mirror of
https://github.com/appium/appium.git
synced 2026-02-04 08:38:54 -06:00
Adding hideSoftKeyboard for android, updating package.json and updating appium-adb submodule
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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",
|
||||
|
||||
Submodule submodules/appium-adb updated: 74de17a431...ca979b81f3
Reference in New Issue
Block a user