com.thoughtworks.selenium.SeleniumException: ERROR Server Exception: sessionId should not be null; hasat com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrError(HttpCommandProcessor.java:97)
at com.thoughtworks.selenium.HttpCommandProcessor
我知道要正确关闭selenium,我需要使用driver.quit(),我的问题是,当我通过调试模式创建测试时,在使用断点执行的一半时间内就会停止测试。有办法在运行测试之前自动关闭这个驱动程序吗?我试图将其放在启动浏览器的代码之前,但我得到了以下错误:
Error 11 Could not copy "C:\LocalWork\eCommerce\QAAutomation\UIAutomation\Branches\M
我正在使用selenium来自动化一些与网站的交互。此过程涉及打开多个浏览器并让它们间歇性地执行操作。然而,有时会有很长(> 1小时)的不工作时间,selenium似乎会在不调用30分钟之后自动关闭浏览器会话。
我想把这个超时时间定在7小时左右,但我找不到任何办法。这是selenium在帮助关闭空闲浏览器时发送的消息。35.277 INFO