How to hide keyboard in ios devices ? – pCloudy – Question and Answers
Home >> Appium Tricks and Tricks >> How to hide keyboard in ios devices ...

How to hide keyboard in ios devices ?


Code Snippet:

MobileElement keyboard = (MobileElement) driver.findElement(MobileBy.className(“UIAKeyboard”));
keyboard.findElements(By.name(“Return”)).get(0).click();
Thread.sleep(5000);
OR
((IOSDriver) driver).hideKeyboard(HideKeyboardStrategy.PRESS_KEY, “Return”);

Leave a Reply

Your email address will not be published. Required fields are marked *