草庐IT

ios - DeviceAgent enter_text failed : Timed out after waiting 1. 0s for KeyEventCompleted 发送事件后

coder 2024-01-29 原文

Xamarin.UITest.XDB.Exceptions.DeviceAgentException: 在真实 IPAD 设备上运行时,从软键盘按下“完成”按钮或“回车”时出现错误。 在模拟器上,它工作正常。

使用的技术: 苹果书专业版 IDE:Visual Studio Community 2017 设备:IPAD 2017,IOS 11 Xamarin.UITest V 2.1.3 Xamarin.TestCloud.Agent:0.21.1 Xcode 9

最佳答案

尝试以下任何步骤或所有步骤,它通常对我有用:

  1. 重新启动 VS(VS 可能正在使用许多资源并变得缓慢......)
  2. 关闭任何打开的 REPL 终端。
  3. 重启模拟器或重新连接设备。
  4. 从您的模拟器或设备中删除 DeviceAgent-Runner 应用 (这是一个由 UITests 安装的应用程序,将在 运行 UITest)

如果还是不行,我通常会把电脑扔到窗外,这样总能解决问题 ;-)

关于ios - DeviceAgent enter_text failed : Timed out after waiting 1. 0s for KeyEventCompleted 发送事件后,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46447107/

有关ios - DeviceAgent enter_text failed : Timed out after waiting 1. 0s for KeyEventCompleted 发送事件后的更多相关文章

随机推荐