About Selenium Firefox Extension

beerboy

Registered Member
Joined
Mar 31, 2016
Messages
72
Reaction score
16
Hello, nowadays i'm struggling with that problem i tried on everything on Internet but can't find the right answer because it didnt work for me. How can i run the Firefox with Extension at the start-up? Could you guys help me? Thanks.
 
Hey are you trying to run Firefox through selenium with an extension already in place? If so I think this works:

FirefoxProfile profile = new FirefoxProfile();
profile.AddExtension(@"C:extensionsLocationextension.xpi");
IWebDriver driver = new FirefoxDriver(profile);
 
Back
Top