Uploaded image for project: 'Nuxeo ECM Build/Test Environment'
  1. Nuxeo ECM Build/Test Environment
  2. NXBT-892

Fix selenium driver under windows

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Continuous Integration

      Description

      Since the selenium-server upgrade, firefox is not found anymore in the path, see http://qa.nuxeo.org/jenkins/job/FT-nuxeo-master-selenium-cap-tomcat-multiosdb/Slave=MULTIDB_WINDOWS,dbprofile=oracle11g,jdk=java-7-openjdk/1930/ for instance

      HTML suite exception seen:
      java.lang.RuntimeException: java.lang.RuntimeException: Firefox could not be found in the path!
      Please add the directory containing ''firefox.exe'' to your PATH environment
      variable, or explicitly specify a path to Firefox like this:
      *firefox c:\blah\firefox.exe
      	at org.openqa.selenium.server.browserlaunchers.BrowserLauncherFactory.createBrowserLauncher(BrowserLauncherFactory.java:190)
      	at org.openqa.selenium.server.browserlaunchers.BrowserLauncherFactory.getBrowserLauncher(BrowserLauncherFactory.java:104)
      	at org.openqa.selenium.server.htmlrunner.HTMLLauncher.getBrowserLauncher(HTMLLauncher.java:79)
      	at org.openqa.selenium.server.htmlrunner.HTMLLauncher.runHTMLSuite(HTMLLauncher.java:139)
      	at org.openqa.selenium.server.htmlrunner.HTMLLauncher.runHTMLSuite(HTMLLauncher.java:198)
      	at org.openqa.selenium.server.SeleniumServer.runHtmlSuite(SeleniumServer.java:640)
      	at org.openqa.selenium.server.SeleniumServer.boot(SeleniumServer.java:305)
      	at org.openqa.selenium.server.SeleniumServer.main(SeleniumServer.java:245)
      	at org.openqa.grid.selenium.GridLauncher.main(GridLauncher.java:97)
      Caused by: java.lang.RuntimeException: Firefox could not be found in the path!
      Please add the directory containing ''firefox.exe'' to your PATH environment
      variable, or explicitly specify a path to Firefox like this:
      *firefox c:\blah\firefox.exe
      	at org.openqa.selenium.browserlaunchers.locators.FirefoxLocator.findBrowserLocationOrFail(FirefoxLocator.java:155)
      	at org.openqa.selenium.server.browserlaunchers.BrowserInstallationCache.locateBrowserInstallation(BrowserInstallationCache.java:46)
      	at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.<init>(FirefoxChromeLauncher.java:50)
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
      	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      	at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
      	at org.openqa.selenium.server.browserlaunchers.BrowserLauncherFactory.createBrowserLauncher(BrowserLauncherFactory.java:179)
      	... 8 more
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: