.hideKeyboard()
Hides the on-screen keyboard.
Usage
device.hideKeyboard()
Returns
Promise: A promise that resolves once the keyboard is no longer visible.
Support
| Platform | Supported |
|---|---|
| iOS | Yes |
| Android | Yes |
| Web | Unknown |
Examples
Hide on-screen keyboard:
const { device, expect } = require("appdriver");
(async () => {
await device.hideKeyboard();
return expect(device.isKeyboardVisible()).toBeFalsy();
})();