hideDeviceKeyboard

Hide the keyboard.

Usage

1
browser.hideDeviceKeyboard(strategy);

Parameters

Param Type Details
strategy String desired strategy to close keyboard (‘tapOutside’ or ‘pressKey’)

Example

hideKeyboard.js
1
2
3
4
5
6
7
8
it('should hide keyboard by tapping outside of it', function () {
browser.hideDeviceKeyboard(); // taps outside to hide keyboard per default
browser.hideDeviceKeyboard('tapOutside');
});

it('should hide keyboard by pressing done', function () {
browser.hideDeviceKeyboard('pressKey', 'Done');
});

Support

Support for ios Support for android