-
Notifications
You must be signed in to change notification settings - Fork 450
Description
When attempting to dismiss the iOS keyboard using Appium + WebDriverAgent, the keyboard is not dismissed and WDA throws an error. This blocks automation flows where text entry is followed by other UI interactions.
-------Error Message-------
Error Domain=com.facebook.WebDriverAgent Code=1
"Did not know how to dismiss the keyboard.
Try to dismiss it in the way supported by your application under test."
UserInfo={NSLocalizedDescription=Did not know how to dismiss the keyboard.
Try to dismiss it in the way supported by your application under test.}
-----Steps to Reproduce-----
1.Launch iOS app using Appium + WDA.
2.Locate a text field and call element.sendKeys("test").
3.Attempt to dismiss the keyboard via driver.hideKeyboard().
4.Observe that WDA throws the above error and the keyboard remains visible.
-----Expected Behavior------
Keyboard should be dismissed when calling hideKeyboard(), or
WDA should provide a supported mechanism to dismiss the keyboard consistently across iOS versions.
-----Actual Behavior------
Keyboard remains visible.
WDA responds with an error message and does not handle dismissal.
-----Environment------
- WDA version: [1]
- Appium version: [v16.7.4]
- iOS version: [v16.7.4 to v18.3]
- Device type: [Real device]
- Xcode version: [16.4]