Hi. When setting the value of an iOS switch, I get this error. The switch does set from false to true, but then I get this exception about Keyboard not present and the test cannot move on.
This was working fine for Appium 1.5.3, but errors looking for keyboard with 1.6.4 (XCUITest).
I have tried both of these commands.
.elementByAccessibilityId('gift_switch').sendKeys(1)
.elementByAccessibilityId('gift_switch').setImmediateValue(1)
Error: [element.sendKeys(1)] Error response status: 13, UnknownError - An unknown server-side error occurred while processing the command. Selenium error: An unknown server-side error occurred while processing the command. Original error: Error Domain=com.facebook.WebDriverAgent Code=1 "Keyboard is not present" UserInfo={NSLocalizedDescription=Keyboard is not present}
Yes, I could just click on the switch, but I was able to set it to whatever the test was expecting, rather than clicking on it to make it the “opposite” status of what it was. Anyone else able to set XCUIElementTypeSwitch control using values?