Skip to content

[iOS] WDA cannot dismiss keyboard – hideKeyboard not supported #1058

@Giteshkongre

Description

@Giteshkongre

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------

  1. WDA version: [1]
  2. Appium version: [v16.7.4]
  3. iOS version: [v16.7.4 to v18.3]
  4. Device type: [Real device]
  5. Xcode version: [16.4]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions