Showing posts with label webdriver with browser extensions. Show all posts
Showing posts with label webdriver with browser extensions. Show all posts

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 );