Take the tour ×  So right now to run my Selenium 1 tests I use a
custom Firefox Profile that sets when I launch my Selenium
Server.  Is there a way to properly set this profile to run in
Selenium 2? I've tried setting the FF profile using new
FirefoxProfile("path"); however that doesnt seem to work. What
it DOES to is delete everything in that path folder(weird, I
know). Can I use the Selenium Server to tell Selenium 2 what to
use? Or does this just not work in Selenium 2b3 yet?
share|improve this question add comment  2 Answers  up vote 3
down vote accepted  The preferred method in selenium 2 is to
programmatically build your profile.  For instance like so:
private static FirefoxProfile CreateProfile()     var profile =
new FirefoxProfile();      profile.EnableNativeEvents = false;
profile.SetPreference("browser.download.dir",
Configuration.TemporaryTestDataShare);
profile.SetPreference("browser.download.folderList", 2);
profile.SetPreference("browser.helperApps.neverAsk.saveToDisk",
"applica