【发布时间】:2020-01-31 05:17:23
【问题描述】:
我正在运行 selenium 网格并有 2 个节点连接到它。但是当我尝试运行一个测试脚本(.java)时,它给出了错误:
Exception in thread "Thread-23" org.openqa.selenium.WebDriverException: Session [null] not available and is not among the last 1000 terminated sessions.
Active sessions are[ext. key 3e5f8fb2ae3b0c5cddc8817f80eb8fe1]
Command duration or timeout: 92 milliseconds
Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
在 VNC 客户端中,chrome 浏览器打开,但 url 未加载并引发错误。
注意:脚本是使用 maven 从另一个 docker 容器运行的。
当我将脚本作为 java 应用程序运行时,它工作正常,但在 docker 中,我收到了错误。**
【问题讨论】:
标签: maven selenium docker selenium-webdriver selenium-grid