iOS fails to hide_keyboard on appium-xcuitest-driver 3.35.1
See original GitHub issueThe 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:
- Created 3 years ago
- Comments:13 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@mykola-mokhnach So whats the workaround here, is it planned to be fixed? I upgraded to latest appium and its failing my tests.
“\n” worked for textfield if thats not in the login screen.