[英]Firefox Driver fails with org.openqa.selenium.SessionNotCreatedException:
I am getting this exception when running tests in Firefox.在 Firefox 中运行测试时出现此异常。
com.codeborne.selenide.ex.SoftAssertionError: Test DraftTest.setUp failed (3 failures)
org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.
org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.
org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.
at com.codeborne.selenide.logevents.ErrorsCollector.cleanAndGetAssertionError(ErrorsCollector.java:64)
at com.codeborne.selenide.testng.SoftAsserts.failIfErrors(SoftAsserts.java:91)
at com.codeborne.selenide.testng.SoftAsserts.onConfigurationFailure(SoftAsserts.java:46)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96)
com.intellij.rt.testng.IDEARemoteTestNG.run(IDEARemoteTestNG.java:66)
at com.intellij.rt.testng.RemoteTestNGStarter.main(RemoteTestNGStarter.java:109)
Firefox version: 98.0.1 Firefox版本:98.0.1
Selenide version: 6.3.4 (Selenium 4.1.2)硒化物版本:6.3.4(硒 4.1.2)
I was getting the same error running my tests using Selenium 4.3.0
and Firefox 91.6
.我在使用 Selenium
4.3.0
和 Firefox 91.6
运行测试时遇到了同样的错误。 I downloaded the latest geckodriver from here ( 0.31.0
at the time of this writing) and that resolved the issue for me.我从这里下载了最新的 geckodriver(撰写本文时为
0.31.0
),这为我解决了这个问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.