0
Posted on 5:35 AM by Softminer and filed under ,


1.First you have to create a profile

C:\Program Files (x86)\Mozilla Firefox\firefox.exe -p

profiles are saved in

C:\Users\administrator\AppData\Roaming\Mozilla\Firefox\Profiles\lrnq8wmb.selenium


2.Add profile to selenium driver

OpenQA.Selenium.Firefox.FirefoxProfile profile = new FirefoxProfile(@"~path");
IWebDriver driver = new OpenQA.Selenium.Firefox.FirefoxDriver(profile);