Letupan

Catch the next wave!

September 12, 2008 at 1:16pm
Home

Running Selenium RC with Firefox 3

The generic globe logo used when Firefox is co...Image via Wikipedia

You will need your firefox to use Selenium as proxy. Why? because selenium needs to inject its js into your html. Now, set that up on your currently running Firefox or create a specific profile for it.

Here we can start running our Selenium RC. I will use it to run a htmlSuite (that file you can generate with Selenium IDE). To use Firefox 3 with selenium, we need to use *custom browser type.

So it will be:

toni@toni:selenium-server-1.0-beta-1$ java -jar selenium-server.jar -htmlSuite “*custom /home/toni/firefox3/firefox” “http://localhost/webapp” /home/toni/selenium-test-cases/test-something.html ./result.html

Voila, selenium test will be loaded into your browser. If you are lucky, you can run your test there. If not, we can high five :D

PS:

Apparently the test failed to run because of error in selenium js at line 535:

this.link.onclick = fnBindAsEventListener(this._onClick, this);
Enhanced by Zemanta