Running Selenium with custom Firefox profile

Printable Version

In some instances you may find yourself trying to run functional test against application server that has fake SSL certificates (for example your test environment). In that case Selenium will give you headache since it will create and destroy custom Firefox profile for each test.

Fortunately, you can use your own custom profile and run your Selenium functional tests using this profile. In that case you can accept all of the certificates once and Firefox will never prompt you to accept them again. This is how you do this:

Use this command to start Selenium server:

java -jar ./selenium-server-0.9.2.jar -firefoxProfileTemplate "C:\Documents and Settings\[your login name]\Application Data\Mozilla\Firefox\Profiles\selenium.default"

Now you can run your functional test against Selenium server using your own Firefox profile and not worry about SSL certificates, and other things that are specific to your network.

Developed by GARBUZ.COM © 1999-2007
Site information

GARBUZ.COM