Start browser with an extension installed using Webdriver?

final String addOnPath = "C:\\Temp\\addon.xpi";
File AOFile = new File( addOnPath );
FirefoxProfile profile = new FirefoxProfile();
profile.addExtension( AOFile );
WebDriver driver = new FirefoxDriver( profile );


No comments:

Post a Comment