Take the 2-minute tour ×
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
add comment

4 Answers 4

up vote 2 down vote accepted

try this driver.get("http://www.google.com/"); url should be http://www.google.com/ not www.google.com

share|improve this answer
1  
Perhaps you could elaborate on what advantage this will provide. –  corsiKa Jul 25 '12 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 '13 at 20:12
add comment

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

share|improve this answer
add comment

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
add comment

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
add comment

protected by Bruce McLeod Jun 20 '13 at 5:13

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

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