Using the Java client, does anybody know how to get Appium to click the bottom right key of this keyboard? A UITextView is multiline so pressing the return key does not work.
@HowToUseLocators(iOSXCUITAutomation = LocatorGroupStrategy.CHAIN) @iOSXCUITFindBy(className = "XCUIElementTypeKeyboard") @iOSXCUITFindBy(className = "XCUIElementTypeButton") private List<IOSElement> iOSKeyboardKey; IOSElement lastKey = iOSKeyboardKey.get(iOSKeyboardKey.size()-1); // now tap on lastKey
Thanks. I couldn't get that to work, but found a different way:
driver.findElement(MobileBy.AccessibilityId("Hide keyboard")).click();