Saturday, July 2, 2011

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.

1.Run Selenium server in interactive mode.To do this run the command:
java -jar selenium-server.jar -interactive -singleWindow
2.Start new selenium browser session using the command:
cmd=getNewBrowserSession&1=*firefox&2=http://www.google.com
3.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.
4.If you don’t see a problem, run the following command:
cmd=open&1=http://www.google.com

If the browser starts and you see Google’s home page in it, your basic setup seems to be fine.

No comments:

Post a Comment