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:
To hide the keyboard:
-
Use the Press Key method with the HIDE_KEYBOARD key value. Click here for more information on the press key command.
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
Related articles
See also the Perfecto Knowledgebase.