Selenium With Java and Python For Mobile Apps & Web Apps......!

Tuesday, 7 April 2015

How to add firebug to mozilla firefox through webdriver Code

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 

startup screen

WebDriver driver = new FirefoxDriver(firefoxProfile);

0 comments:

Post a Comment

Translate

Popular Posts

Total Pageviews