Thursday, January 12, 2012

FirefoxDriver with custom profile

Use profile manager to create profiles. In Windows machine profiles will be stored in the path

C:\Documents and Settings\user\Application Data\Mozilla\Firefox\Profiles\

FirefoxProfile profile = new ProfilesIni().getProfile("profileName");
FirefoxDriver driver = new FirefoxDriver(profile);

Once firefox window opens check that addon's, bookmark etc are appearing in the newly opened firefox window.

No comments:

Post a Comment