Thursday, March 1, 2012

Selenium - Firefox with Custom Profile

There are few scenarios where we require to run Firefox with custom profile, I will cover the scenarios in my upcoming posts, however let me post how to run Selenium with Custom Firefox profile.
First you require to create a custom Firefox profile. Let's see how to create.

  1. Open the run menu and type following command
    Firefox -ProfileManager
  2. It will open the below dialog box, Click on "Create Profile" Click on "Next" 
  3. From below dialog box On below dialog click on "Choose Folder" first and then choose the folder where you want to save you custom profile, and then click "Finish" button. 
Now your custom profile has created. To run Selenium with custom profile, you need to start selenium RC and need to provide the path where your custom profile is stored as mention below
java -jar selenium-server-standalone-2.19.0.jar -firefoxProfileTemplate "d:\Gaurang\Selenium\Custom_Profile"


Post a Comment