cruxi
cruxi

Reputation: 829

FirefoxDriver Selenium does not work (Java)

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?!

Upvotes: 0

Views: 568

Answers (1)

iamsanjeet
iamsanjeet

Reputation: 51

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

Upvotes: 1

Related Questions