could not start Selenium session: Failed to start new browser sesion

I have heard people have problems with starting firefox3 while using selenium1.0.x on windows7.

The exact error message is similar to this:

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:

*firefox3c:\blah\firefox.exe

at com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:89)

I attempted to fix this by putting the path in the environment variable of the windows7 machine and it still did not work.

I had put in something like:

c:\Program Files\Mozilla

I spent some time trying different things until i tried

c:\Program Files\Mozilla\

and Yes!!! I could now start running the selenium tests.

Advertisements
This entry was posted in Software Testing and tagged , , . Bookmark the permalink.

3 Responses to could not start Selenium session: Failed to start new browser sesion

  1. Juni says:

    wow… thats the solution… am happy to come across this site

  2. Asad Azkar says:

    Thanks a lot… it works… i was doing the same mistake and now its working…

  3. jsimon says:

    where do you put that?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s