简体   繁体   English

Firefox 驱动程序失败并出现 org.openqa.selenium.SessionNotCreatedException:

[英]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.

相关问题 org.openqa.selenium.SessionNotCreatedException - org.openqa.selenium.SessionNotCreatedException org.openqa.selenium.SessionNotCreatedException - org.openqa.selenium.SessionNotCreatedException Selenium 3.0 Firefx 驱动程序因 org.openqa.selenium.SessionNotCreatedException 失败:无法创建新的远程会话 - Selenium 3.0 Firefx Driver fails with org.openqa.selenium.SessionNotCreatedException: Unable to create new remote session SeleniumError:org.openqa.selenium.SessionNotCreatedException - SeleniumError : org.openqa.selenium.SessionNotCreatedException org.openqa.selenium.SessionNotCreatedException 与 Appium - org.openqa.selenium.SessionNotCreatedException with Appium Appium _org.openqa.selenium.SessionNotCreatedException - Appium _org.openqa.selenium.SessionNotCreatedException 获取异常 org.openqa.selenium.SessionNotCreatedException - Getting exception org.openqa.selenium.SessionNotCreatedException org.openqa.selenium.SessionNotCreatedException:无法通过 Selenium 和 Java 使用 GeckoDriver 和 Firefox 创建会话错误 - org.openqa.selenium.SessionNotCreatedException: Unable to create session error using GeckoDriver and Firefox through Selenium and Java org.openqa.selenium.SessionNotCreatedException:无法创建新的远程会话。 在模拟器中初始化android驱动程序 - org.openqa.selenium.SessionNotCreatedException: Unable to create new remote session. while initializing android driver in emulator Firefox路径错误? org.openqa.selenium.SessionNotCreatedException:无法启动浏览器 - Firefox Path error? org.openqa.selenium.SessionNotCreatedException: Failed to start browser
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM