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
相关产品推荐
相关产品推荐

