Running different versions of Firefox on Selenium Grid 2

Here is the command line to run Firefox versions on selenium grid 2
java -jar selenium-server-standalone-2.20.0.jar -role rc -hub http://127.0.0.1:4444/grid/register -browser “browserName=firefox,platform=WINDOWS,version=5” -port 5559 (RC).

I download Firefox 5 and saved it in a folder [b]FF5 [/b]on my C drive.

Here is my selenium set-up to run my selenium rc scripts on Port 5559 and using Firefox version 5.
public void SetupTest()
{
selenium = new DefaultSelenium(“localhost”, 5559, “*firefox c:\FF5\firefox.exe”, Country_URL);
selenium.Start();
selenium.SetTimeout(“120000”);
selenium.WindowMaximize();
verificationErrors = new StringBuilder();
}

If you want to run it on Firefox version 6 download Firefox version 6 and save it in a folder called FF6 on C drive.
execute the command : java -jar selenium-server-standalone-2.20.0.jar -role rc -hub http://127.0.0.1:4444/grid/register -browser “browserName=firefox,platform=WINDOWS,version=6” -port 5559 (RC).

Use the following set-up

Here is my selenium set-up to run my selenium rc scripts on Port 5559 and using Firefox version 6.
public void SetupTest()
{
selenium = new DefaultSelenium(“localhost”, 5559, “*firefox c:\FF6\firefox.exe”, Country_URL);
selenium.Start();
selenium.SetTimeout(“120000”);
selenium.WindowMaximize();
verificationErrors = new StringBuilder();
}

Leave a Reply

Your email address will not be published. Required fields are marked *