selenium rc -running specific firefox version from 2 verions

34 views
Skip to first unread message

Sasi kumar

unread,
Mar 29, 2011, 7:26:31 AM3/29/11
to Selenium - Automated Software Testing
I have 2 Firefox versions and I want to run the selenium with
particular version (both), so I used * custom option in code as below!

RemoteControlConfiguration rc = new RemoteControlConfiguration();
File f = new File("C:/Program Files/Mozilla Firefox/firefox.exe");
rc.setFirefoxProfileTemplate(f);
seleniumServer = new SeleniumServer(rc);
seleniumServer.start();
selenium = new DefaultSelenium("localhost", 4444,
"*custom \"C:/Program Files/Mozilla Firefox/firefox.exe\"",
"http://www.google.com/");

but some extra parameter is passing when browser opens like below and
it doesnt work

http://www.google.com/selenium-server/core/RemoteRunner.html?sessionId=5049eeb3c80

AJ

unread,
Apr 21, 2011, 1:01:05 AM4/21/11
to Selenium - Automated Software Testing
Remove custom and put *firefox itself. Like this:
"*firefox \"C:/Program Files/Mozilla Firefox/firefox.exe\"
Its not a custom browser that you are trying. You are running your
test on firefox but a different version.
> http://www.google.com/selenium-server/core/RemoteRunner.html?sessionI...
Reply all
Reply to author
Forward
0 new messages