问答 iOS 真机隐藏键盘报"Did not know how to dismiss the keyboard. Try to dismiss it in the way supported by your application under test."

kiki · 2022年02月10日 · 最后由 Alapaca 回复于 2022年03月16日 · 1998 次阅读

iOS 使用 hide_keyboard() 隐藏键盘,报错内容:
{InvalidElementStateException}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.}
Stacktrace:
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.}
at errorFromW3CJsonCode (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:780:25)
at ProxyRequestError.getActualError (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:663:14)
...

共收到 1 条回复 时间 点赞

我也遇到过,但可能是设备相关的问题

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册