Selenium WebDriver - launches firefox with IE tab options

So you are trying to do the most basic thing : launch firefox

Webdriver driver = new FirefoxDriver();

Firefox browser does open up, but in the foreground IETab+Options tool bar keeps popping up.

You repeat the steps manually and nothing!

How will you disable this add on so that a blank clean browser opens up in FF?

What you need to do is to launch your default profile when launching Firefox.

ProfilesIni profile = new ProfilesIni();

FirefoxProfile ffprofile = profile.getProfile("default");

WebDriver driver = new FirefoxDriver(ffprofile);

These generally require the following imports:

import org.openqa.selenium.firefox.FirefoxProfile;

import org.openqa.selenium.firefox.internal.ProfilesIni;

Happy Learning!

If this does not work then create a new profile , disble the addon IETab and save the profile
ProfilesIni profile = new ProfilesIni();

FirefoxProfile ffprofile = profile.getProfile("SeleniumProfile");

WebDriver driver = new FirefoxDriver(ffprofile);


Popular posts from this blog

XPATH for IE / internet explorer

All time good software testing books!

Website's underlying technology for automation