iPad | Hide keyboard
Hiding the keyboard on iPad devices using the Press Key method is useful when objects are located behind the keyboard.
To automatically close the keyboard on iPad devices:
-
Click the Hide Keyboard button (buttom right).
To hide the keyboard:
-
Use the Press Key method with the HIDE_KEYBOARD key value. To learn more about the press key command, see Legacy | Press key.
Selenium/Appium (Java client)
Copy
Map<String,Object> param = new HashMap<>();
param.put("keySequence", "HIDE_KEYBOARD ");
driver.executeScript("mobile:presskey", param);
UFT mobile (legacy)
Copy
Device("DUT").PressKey "HIDE_KEYBOARD"
Native automation (legacy)