Tell me more ×
Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. It's 100% free, no registration required.

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();
    driver.get("www.google.com");
    driver.quit();
}

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?

share|improve this question
1  
See also sqa.stackexchange.com/questions/2201/… – user246 Dec 5 '11 at 19:37
2  
Good spot @user246 - they're almost exact duplicates. Perhaps worth merging the two? – testerab Jan 6 '12 at 0:28

4 Answers

up vote 2 down vote accepted

try this driver.get("http:google.com");

share|improve this answer
Perhaps you could elaborate on what advantage this will provide. – corsiKa Jul 25 '12 at 17:21

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);

share|improve this answer

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

-Robin

share|improve this answer
Welcome to SQA.SE - your answer would be more complete if you gave a précis of the workaround here – Andrew Nov 2 '12 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 '12 at 9:32
Fair point - I didn't look at the date when it came up on the Review list :) – Andrew Nov 7 '12 at 9:42

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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