WebDriverException: Message: A session is either terminated or not started

Posted 数据科学工作加油站

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了WebDriverException: Message: A session is either terminated or not started相关的知识,希望对你有一定的参考价值。

错误提示:

……

[debug] [XCUITest] Connection to WDA timed out
[debug] [iProxy] recv failed: Operation not permitted
[BaseDriver] Shutting down because we waited 60 seconds for a command
[Appium] Closing session, cause was ‘New Command Timeout of 60 seconds expired. Try customizing the timeout using the ‘newCommandTimeout‘ desired capability

……

 

WebDriverException: Message: A session is either terminated or not started

解决方案:增加字典newCommandTimeout值




以上是关于WebDriverException: Message: A session is either terminated or not started的主要内容,如果未能解决你的问题,请参考以下文章

org.openqa.selenium.WebDriverException:连接被拒绝:连接

了解Selenium的WebDriverException,“无法找到元素”

WebDriverException:未知错误(“chrome 无法启动”和“无法创建 Chrome 进程”)

Selenium 因 selenium.common.exceptions.WebDriverException 崩溃:消息:newSession

org.openqa.selenium.WebDriverException:未知错误:调用函数结果缺少“值”

Selenium WebDriverException 中的空错误消息