I face a problem while running Selenium scripts. I try to open Firefox using the following command:

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;

public static void main(String[] args) {
    WebDriver driver = new FirefoxDriver();

But Firefox opens with Yes/No dialog with the following message:

Would you like to help improve Mozilla Firefox by automatically reporting memory usage, performance, and responsiveness to Mozilla?

I get this message every time. Selecting Yes or No has no effect. I can't understand whats the problem. Is it a problem with Firefox profile or WebDriver?

  • 1
    See also sqa.stackexchange.com/questions/2201/…
    – user246
    Dec 5, 2011 at 19:37
  • 2
    Good spot @user246 - they're almost exact duplicates. Perhaps worth merging the two?
    – testerab
    Jan 6, 2012 at 0:28
  • Maybe you could disable the pop-up in the Firefox browser settings 🤔 Dec 20, 2017 at 4:33

4 Answers 4


Try this:

String baseURL ="http://www.google.com/";

baseURL should be http://www.google.com/ not www.google.com

  • 1
    Perhaps you could elaborate on what advantage this will provide.
    – corsiKa
    Jul 25, 2012 at 17:21
  • I think anusha is implying that the problem you are seeing is a result of not including the protocol in the URL. I agree that this is possible. What did you discover?
    – djangofan
    Jun 20, 2013 at 20:12

What version of Firefox are you using? Are you sure that the version of WebDriver you have supports the version of Firefox? Try updating to the latest version of WebDriver and a version of Firefox that you know is supported like 7.0.1. Another possible solution is that you can start Firefox with any profile instead of the default one that ships with Selenium.

DesiredCapabilities cap = new DesiredCapabailities();
FirefoxProfile profile = new FirefoxProfile("path_of_profile");
cap.SetCapability("firefox_profile", profile.ToBase64String());
WebDriver driver = new FirefoxDriver(cap); 

I have a partial workaround in Ruby, which may lead you to the code you need; see http://code.google.com/p/selenium/issues/detail?id=3154


  • Welcome to SQA.SE - your answer would be more complete if you gave a précis of the workaround here
    – Andrew
    Nov 2, 2012 at 21:39
  • 1
    Ah, sorry; the short version is "run firefox with a profile specified". OTOH, I think this bug has been fixed in the 11 intervening moths. :)
    – rlpowell
    Nov 7, 2012 at 9:32
  • Fair point - I didn't look at the date when it came up on the Review list :)
    – Andrew
    Nov 7, 2012 at 9:42

Me suggest will be use custom Firefox profile. See how to create one on this web page.

Not the answer you're looking for? Browse other questions tagged or ask your own question.