iOS fails to hide_keyboard on appium-xcuitest-driver 3.35.1

See original GitHub issue

The problem

Believe it is related to this PR: https://github.com/appium/WebDriverAgent/pull/453

It was working on appium-xcuitest-driver 3.34.0 but fails on 3.35.1

driver.hide_keyboard fails to hide keyboard with error:

Selenium::WebDriver::Error::ElementNotInteractableError: 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.}
from InvalidElementStateError: 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.}

Environment

  • Appium version (or git revision) that exhibits the issue: 1.20.2
  • Last Appium version that did not exhibit the issue (if applicable): 1.20.1
  • Desktop OS/version used to run Appium: Mac Big Sur
  • Node.js version (unless using Appium.app|exe): v15.3.0
  • Npm or Yarn package manager: Yarn
  • Mobile platform/version under test: iOS 14.1
  • Real device or emulator/simulator: Simulator
  • Appium CLI or Appium.app|exe: CLI

Link to Appium logs

Code To Reproduce Issue [ Good To Have ]

driver.hide_keyboard

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:13 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
kvinay729commented, May 22, 2021

@mykola-mokhnach So whats the workaround here, is it planned to be fixed? I upgraded to latest appium and its failing my tests.

3reactions
vvelusamy1commented, Dec 21, 2021

“\n” worked for textfield if thats not in the login screen.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to hide keyboard in iOS mobile automation using Appium
I am using iOS version of 10.2 and xcode version is 8.3. Can anyone let me know how to hide the keyboard in...
Read more >
Appium hidekeyboard() method - Stack Overflow
The Appium method hideKeyboard() is known to be unstable when used on iPhone devices, as listed in Appium's currently known open issues.
Read more >
ios 14 keyboard not appearing | Apple Developer Forums
ios 14 beta 2, iphone 5se in mail app, and others: keyboard does not appear when responding to email. cant type anything.
Read more >
Hide keyboard while typing on iPhone - AppleVis
Hide keyboard while typing on iPhone ... iOS and iPadOS ... text field that does not go away when i press return, it...
Read more >
How to dismiss the keyboard for a TextField - Hacking with Swift
If you're supporting only iOS 15 and later, you can activate and dismiss ... You can now write hideKeyboard() from inside any SwiftUI...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found