I'm using Selenium for my functional testing, but I just had a bug I can't resolve. It was working well all this month but since the last run of the test, any Firefox browser that i run with my test just give me the error "Firefox stopped working".
So far I've read different post related to this problem, they say reinstall selenium or Firefox fixed it, but I tried both and it failed. By reinstall Selenium I mean just remove and read the library in my project.
Here an example of the code that give me the error :
public class Test {
static WebDriver driver;
static Wait<WebDriver> wait;
public static void main(String[] args) {
driver = new FirefoxDriver();//true to enable the JS
wait = new WebDriverWait(driver, 3000);
final String url = "https://www.google.com";
JavascriptExecutor js = (JavascriptExecutor) driver;
try {
driver.navigate().to(url);
} finally {
driver.close();
}
}
}
THis provide the following error :
org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output: