Uploaded image for project: 'Arquillian'
  1. Arquillian
  2. ARQ-1045

Fail fast if path to browser is not valid

XMLWordPrintable

      There is no reason to delegate failure to Selenium. If browser binary does not exist for default selenium, simply fail fast. E.g.

      <property name="browser">*firefox /opt/firefox-9.0.1/firefox-bin</property>
      
      java.lang.RuntimeException: Could not start Selenium session: Failed to start new browser session: java.lang.RuntimeException: Firefox 3 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 3 like this:
      *firefox3 c:\blah\firefox.exe
      	at com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:109)
      	at org.jboss.arquillian.drone.selenium.factory.DefaultSeleniumFactory.createInstance(DefaultSeleniumFactory.java:67)
      

            Unassigned Unassigned
            kpiwko Karel Piwko
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: