Thursday, September 1, 2011

Selenium RC scripts not running in FF 5+?

If you've recently updated your Firefox browsers from 3.x to 5+ you are probably just seeing an empty selenium RC control Firefox window open while your selenium server log reads:

18:36:15.781 INFO - Preparing Firefox profile...
18:36:21.046 INFO - Launching Firefox...

And hangs.

Good news!
In order to get around this all you have to do is the following:

  1. Download the latest Selenium Server jar available here 
  2. If you are not running Java 1.6, download and install it from here
  3. Update the script you use to run selenium server pointing it to the new jar file. Example below

@echo off
cd \SeleniumRC\selenium-server-2.5.0
echo =====================
echo =====================
java -jar selenium-server-standalone-2.5.0.jar

Rerun your tests, after starting selenium server and your scripts should now run in Firefox 5.
Creative Commons License
VGP-Miami Web and Mobile Automation Blog by Alfred Vega is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.