views:

902

answers:

3

I am using selenium-server , selenium rc for UI testing in my application . My dev box is Windows with FireFox 3.5 and every thing is running fine and cool. But when i try to run selenium tests on my build server which is a linux box , i get this error

Caution: '/usr/bin/firefox': file is a script file, not a real executable.  The browser environment is no longer fully under RC control

basically the selenium-rc is not able to find the firefox executable on linux(actually its a .sh file here), which is present in the case of Windows .

Has anyone faced this error before. Please let me know for any pointers.

Thanks for any help

~Pratik

Thanks! Pratik

+1  A: 

Hey, I have Selenium running on Karmic with no issues. I can't quite remember how I did it, but I think it was a case of grabbing a more recent version ot the selenium-rc-serve.jar.

I also remember looking at this post: http://tero.tilus.net/rutinat/2009/08/18/cucumber-running-selenium-on-debian-lenny/

Hope something there points you in the right direction!

Rodreegez
A: 

Ao que me parece voce deve apontar o caminho do seu browser para o arquivo firefox-bin e não o script firefox Voce pode utilizar assim ao iniciar o selenium-server: -DfirefoxDefaultPath=/home/desenv/internet/firefox/firefox-bin

Guilherme Brito
+1  A: 

This is occurring because Selenium wants to start the FireFox binary directly, rather than delegate to the normal launch script. Before checking for "firefox" (which is a script on many installations), it checks for "firefox-bin". You can circumvent this problem by creating a link named "firefox-bin" that points directly at your desired version of the firefox binary.

This is described under "Ubuntu fix" (though it actually applies to other Linux'es as well) in the Cucumber Wiki at:

http://wiki.github.com/aslakhellesoy/cucumber/setting-up-selenium

Glen E. Ivey