Selenium RC 1.0.1 support for Firefox 3.6 February 1, 2010
LATEST UPDATE (Jan 2010): We now have Firefox 4 in beta and you will face the same issue again. You might want to follow the instructions for patching Selenium server 1.x to support Firefox 4.
UPDATE (Mar, 2010): On Feb 23, 2010 Selenium RC 1.0.3 was released. With this release it now supports
- Firefox 3.6
- Snow Leopard
If you are looking for instructions to download and setup the latest Selenium RC release, look here.
A lot of people are having trouble with selenium and firefox 3.6. Here I have described the steps to first ensure that the problem you are seeing is due to the lack of selenium’s support for your browser version and then steps to patch the
selenium-server.jar to make it work with Firefox 3.6.
Testing Selenium server support for Firefox
The quickest way to test if your selenium server is supporting the Firefox version installed on your machine is to start selenium server in an interactive mode. Let us walk through these steps.
- Run Selenium server in interactive mode. To do this run the command:
java -jar selenium-server.jar -interactive -singleWindow
- Start new selenium browser session using the command:
- If you see a line saying
Preparing Firefox profile...and no progress beyond that, there is a high likelihood that the Firefox browser version you have is not supported by your version of selenium server jar you have. If you have Firefox 3.6 and selenium 1.0.1, the next section shows how to fix the problem.
- If you don’t see a problem, run the following command:
If the browser starts and you see Google’s home page in it, your basic setup seems to be fine.
Patching Selenium server to support Firefox 3.6
These steps should work for you on Unix, Mac or cygwin on windows. In case you are not using any of these, you would need to figure out the corresponding steps for our platform.
- Create a directory where you could manipulate the jar’s contents.
- Copy your selenium-server.jar file in the newly created directory and cd into it.
cp selenium-server.jar ~/selenium101/.
- Unzip the jar files contents here and delete the jar file.
- First find all the *.rdf files – you should see 5 of them:
find . -name "*.rdf"
- In each of these files you will see
Change them to
- all the files are now patched. To jar them back up run the following steps:
zip -r selenium-server *
mv selenium-server.zip selenium-server.jar
Rerun the browser tests as described earlier. Selenium should now be able to instantiate a new browser and drive it.Selenium