0

I want to set up a FirefoxDriver with Selenium in Java. I tried it as follows:

    FirefoxProfile profile = new FirefoxProfile();
    profile.setPreference("network.proxy.http", "proxy");
    profile.setPreference("network.proxy.http_port", "1234");
    WebDriver driver = new FirefoxDriver(profile);

    driver.get("http://www.stackoverflow.com");

But it always gives me the error:

org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:

After google this it turned out that this is common problem but I did not find any solution! I am using selenium-server-standalone-2.41.0.jar and Firefox 29.0 Can anybody please help me?!

4
  • Your code looks fine. I did not observed the problem you are getting. Commented May 30, 2014 at 8:34
  • selenium-server-standalone-2.41.0.jar and Firefox 29.0.1 work well for me. I suggest you re-install Firefox with other version. Commented May 30, 2014 at 9:28
  • Unfortunately it is not working for me even not if use an older FF version (27.0.1 was recommended) :( Commented May 30, 2014 at 9:53
  • I found out that this is working fine on another system. strange. Commented Jun 11, 2014 at 9:11

1 Answer 1

1

Try setting the proxy details manually in firefox browser and see if you are able to access

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.