Page tree
Skip to end of metadata
Go to start of metadata

Last updated: Jun 25, 2020 19:07

Problem

iOS devices sometimes experience an issue where the return key cannot be clicked to close the keyboard of the device. 

Solution

To fix this problem permanently, do the following:

  • If there is no Done button to close the keyboard, close the keyboard as follows:
    Click outside of the keyboard, somewhere on the screen. The following code sample does the same:
    ((IOSDriver) driver).hideKeyboard(HideKeyboardStrategy.TAP_OUTSIDE);

Related articles:

https://discuss.appium.io/t/how-to-hide-keyboard-in-ios-mobile-automation-using-appium/16673