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

Last updated: Dec 12, 2018 17:44

In iOS  sometimes there is an issue where the return key is not clicked to close the keyboard of the device.

In order to fix that permanently please apply the following solution:

If there is no  “Done” button to close the keyboard you need to close the keyboard by a method.

There is a specific method to close the keyboard.

You need to click outside of the keyboard, somewhere in 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

by Nikolay Peev