一则uiautomation错误处理

时间:2021-11-26 09:03:15

一款iphone程序,用到了多window,结果在最后一个window里设置textfield时出错

target.frontMostApp().mainWindow().textFields()[0].textFields()[0] could not be tapped because the element is not visible
搜到一个类似提问,但无人解决
http://*.com/questions/18898484/ui-automation-could-not-be-tapped-because-the-element-is-not-visible-ios
最终的解决方案是换模拟器
iphone6换成iphone5后问题解决