Ripon Al Wasim
Ripon Al Wasim

Reputation: 37746

Firefox is opened but no URL is typed on address bar during executing Selenium WebDriver test

I am using Selenium WebDriver for Automated test.
IDE: eclipse
Test Framework: TestNG
Language: Java

WebDriver driver = = new FirefoxDriver();

After running the test, the following error was found:

[TestNG] Running:
  /tmp/testng-eclipse-2118619437/testng-customsuite.xml

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

Can anybody help me?

Upvotes: 1

Views: 396

Answers (2)

Khyati Sehgal
Khyati Sehgal

Reputation: 375

The problem is resolved at my end . I tool selenium-server-standalone-2.41.0.jar an all the errors are gone , I am able to run my test suites now .

Upvotes: 0

Yash
Yash

Reputation: 136

Are you using a proxy to connect to the internet? If yes then you'll need to set a proxy for your FF driver.

First you'll need to import the Proxy class-

import org.openqa.selenium.Proxy;

Then, you'll need to create an instance of the Proxy class and set a proxy on it-

proxy= new Proxy();
proxy.setHttpProxy("10.1.2.47:80");

Now, create an instance of the FF driver and it should work fine.

Upvotes: 1

Related Questions