user3016945
user3016945

Reputation: 265

How to add java plugin to firefox profile using selenium webdriver

I want to add java 6 plugin to firefox profile using java code and selenium.

Please any one help how to add plugin to profile

Upvotes: 0

Views: 1265

Answers (1)

tuds
tuds

Reputation: 131

File file = new File("java 6 plugin file");
FirefoxProfile firefoxProfile = new FirefoxProfile();
firefoxProfile.addExtension(file);
firefoxProfile.setPreference("extensions.firebug.currentVersion", "1.8.1"); 
WebDriver driver = new FirefoxDriver(firefoxProfile);

Upvotes: 1

Related Questions