Testing browser extension with selenium C # in Saucelabs
1 answer
For Firefox and chrome, this is possible by providing a feature or profile. For example, in the case of firefox:
File file = new file ("firebug-1.8.1.xpi"); FirefoxProfile firefoxProfile = new FirefoxProfile (); firefoxProfile.addExtension (file); firefoxProfile.setPreference ("extensions.firebug.currentVersion", "1.8.1"); // Avoid launching the screen
WebDriver driver = new FirefoxDriver (firefoxProfile);
0
source to share