Thursday, 15 September 2011

Selenium is not killing the firefox process

Note to myself:

When firefox is started from the bash script on linux (/usr/bin/firefox -> ../lib64/firefox/ the selenium server command that kills the browser silently fails.

Selenium requires the binary firefox file to be executed.

Fix installed firefox in my home dir (eg /home/me/firefox) and to run the binary file need to set the LD_LIBRARY_PATH=/home/me/firefox before executing /home/me/firefox.

Without having to modify the server's firefox you can force the selenium server to use the locally installed on by: LD_LIBRARY_PATH=/home/me/firefox java -jar selenium-server.jar -forcedBrowserMode "*firefox /home/me/firefox/firefox-bin"

No comments:

Post a Comment