You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Azure Pipelines/Serenity BDD中Selenium间歇性SessionNotCreatedException求助

间歇性SessionNotCreatedException问题求助

我在Azure流水线及本地笔记本环境中,使用Serenity BDD框架针对Web应用执行Selenium Web测试时,遇到间歇性问题:测试套件启动阶段偶尔会抛出SessionNotCreatedException,表现为chromedriver无法与浏览器建立连接。

目前已排除Chrome浏览器及chromedriver不可用的情况——后续测试用例通常能正常启动浏览器并由webdriver控制。以下是异常序列信息:

net.thucydides.core.webdriver.DriverConfigurationError:
WebDriver was unable to create a new instance of type class org.openqa.selenium.chrome.ChromeDriver
WebDriver reported the following message: Could not start a new session. Response code 500. Message: session not created: DevToolsActivePort file doesn't exist
[...]
Could not instantiate class org.openqa.selenium.chrome.ChromeDriver
[...]
WebDriver reported the following message: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.

Caused by: org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Response code 500. Message: session not created: DevToolsActivePort file doesn't exist

Caused by: org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.

Caused by: org.openqa.selenium.WebDriverException: Timed out waiting for driver server to bind the port.

请问有谁遇到过类似问题吗?


内容的提问来源于stack exchange,提问作者Tomasz Moczadłowski

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.10 02:43:22