我正在尝试使用Appium自动进行iOS测试。我有一个需要用户位置并在首次启动时请求位置权限的应用。当我尝试将硒连接到全新安装时,出现弹出窗口时它将失败。当我手动接受弹出窗口时,Seleium和Appium会成功连接,并且测试可以继续。
这是服务器输出的副本:
error: Instruments did not launch successfully, failing session
error: Failed to start an Appium session, err was: Instruments did not launch successfully--please check your app paths or bundle IDs and try again
info: Responding to client with error: {"status":6,"value":{"message":"A session is either terminated or not started","origValue":"Instruments did not launch successfully--please check your app paths or bundle IDs and try again"},"sessionId":"faccc84b-fa8e-4137-ad77-f0c79d09b045"}
POST /wd/hub/session 500 13605ms - 270
debug: - - - "POST /wd/hub/session HTTP/1.1" 500 270 "-" "Ruby"
info: …Run Code Online (Sandbox Code Playgroud)