net.thucydides.core.webdriver.UnsupportedDriverException: Could not instantiate class org.openqa.selenium.firefox.FirefoxDriver

GitHub | mngi-arogers | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    serenity-core 1.1.38 (and newer) + BrowserStack : receiving FAILED TO CREATE NEW WEBDRIVER_DRIVER INSTANCE error

    GitHub | 6 months ago | mngi-arogers
    net.thucydides.core.webdriver.UnsupportedDriverException: Could not instantiate class org.openqa.selenium.firefox.FirefoxDriver

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at net.thucydides.core.webdriver.strategies.DriverCapabilities.realBrowserCapabilities()
    2. net.thucydides.core
      RemoteDriverBuilder.newInstance
      1. net.thucydides.core.webdriver.strategies.DriverCapabilities.realBrowserCapabilities(DriverCapabilities.java:97)
      2. net.thucydides.core.webdriver.strategies.DriverCapabilities.forDriver(DriverCapabilities.java:41)
      3. net.thucydides.core.webdriver.strategies.RemoteDriverBuilder.findbrowserStackCapabilities(RemoteDriverBuilder.java:113)
      4. net.thucydides.core.webdriver.strategies.RemoteDriverBuilder.buildBrowserStackDriver(RemoteDriverBuilder.java:92)
      5. net.thucydides.core.webdriver.strategies.RemoteDriverBuilder.newInstance(RemoteDriverBuilder.java:62)
      5 frames
    3. thucydides-core
      WebDriverFacade.get
      1. net.thucydides.core.webdriver.WebDriverFactory.newWebdriverInstance(WebDriverFactory.java:116)
      2. net.thucydides.core.webdriver.WebDriverFacade.newDriverInstance(WebDriverFacade.java:142)
      3. net.thucydides.core.webdriver.WebDriverFacade.newProxyDriver(WebDriverFacade.java:133)
      4. net.thucydides.core.webdriver.WebDriverFacade.getProxiedDriver(WebDriverFacade.java:103)
      5. net.thucydides.core.webdriver.WebDriverFacade.openIgnoringHtmlUnitScriptErrors(WebDriverFacade.java:178)
      6. net.thucydides.core.webdriver.WebDriverFacade.get(WebDriverFacade.java:173)
      6 frames
    4. dfm.cms.test
      SerenityIssueTest.thisShouldRun
      1. dfm.cms.test.SerenityIssueTest.thisShouldRun(SerenityIssueTest.java:18)
      1 frame
    5. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:498)
      4 frames
    6. JUnit
      InvokeMethod.evaluate
      1. org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
      2. org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      3. org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
      4. org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
      4 frames
    7. net.serenitybdd.junit
      SerenityStatement.evaluate
      1. net.serenitybdd.junit.runners.SerenityStatement.evaluate(SerenityStatement.java:24)
      1 frame
    8. JUnit
      BlockJUnit4ClassRunner.runChild
      1. org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
      2. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
      2 frames
    9. net.serenitybdd.junit
      SerenityRunner.runChild
      1. net.serenitybdd.junit.runners.SerenityRunner.runChild(SerenityRunner.java:427)
      2. net.serenitybdd.junit.runners.SerenityRunner.runChild(SerenityRunner.java:52)
      2 frames
    10. JUnit
      ParentRunner.run
      1. org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
      2. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
      3. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
      4. org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
      5. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
      6. org.junit.runners.ParentRunner.run(ParentRunner.java:363)
      6 frames
    11. net.serenitybdd.junit
      SerenityRunner.run
      1. net.serenitybdd.junit.runners.SerenityRunner.run(SerenityRunner.java:241)
      1 frame
    12. JUnit4 Runner
      JUnit4TestReference.run
      1. org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)
      1 frame
    13. JUnit3 Runner
      RemoteTestRunner.main
      1. org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
      2. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
      3. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)
      4. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
      5. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)
      5 frames