Interface HidesKeyboardWithKeyName

    • Method Detail

      • hideKeyboard

        default void hideKeyboard​(java.lang.String keyName)
        Hides the keyboard by pressing the button specified by keyName if it is showing. If the on-screen keyboard does not have any dedicated button that hides it then an error is going to be thrown. In such case you must emulate same actions an app user would do to hide the keyboard. See the documentation for 'mobile: hideKeyboard' extension for more details.
        Parameters:
        keyName - The button pressed by the mobile driver to attempt hiding the keyboard.