Monday, 15 March 2010

How To add support for latest version of FireFox in Selenium RC

Following are the steps to patch selenium-server.jar to make it work with any latest version of Firefox (example - FireFox 3.6)

Copy selenium-server.jar file to a directory where you can modify it's contents
cp selenium-server.jar /modified/
cd /modified
Unzip the selenium-server.jar files
unzip selenium-server.jar
We need to patch five instances of a file called ‘install.rdf’. These files can be found at the following locations in the extracted ‘selenium-server.jar’ archive:

/customProfileDirCUSTFF/extensions/{538F0036-F358-4f84-A764-89FB437166B4}/install.rdf
/customProfileDirCUSTFF/extensions/readystate@openqa.org/install.rdf
/customProfileDirCUSTFFCHROME/extensions/{503A0CD4-EDC8-489b-853B-19E0BAA8F0A4}/install.rdf
/customProfileDirCUSTFFCHROME/extensions/{538F0036-F358-4f84-A764-89FB437166B4}/install.rdf
/customProfileDirCUSTFFCHROME/extensions/readystate@openqa.org/install.rdf

In each of these files you will see
<em:maxVersion>3.5.*</em:maxVersion>
Change them to
<em:maxVersion>3.6.*</em:maxVersion>
After patching all the above file, zip the folder and rename it to .jar
zip -r selenium-server *
mv selenium-server.zip selenium-server.jar
Now include this modified jar into your project and your selenium server should now able to run your application on FireFox 3.6.

0 comments:

Post a Comment

 
//PART 2