When I execute a Selenium Script using Firefox, the Firefox opens up but it doesn't redirect to the URL. Below is the error which is displayed on the Eclipse Console:
org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
console.error: JsonSchemaValidator.jsm
my script is below :
package testCases;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
public class Authentication {
public static void main(String[] args) {
System.setProperty("webdriver.gecko.driver","C:/usine-dev/workdir/workspace/test-bleu-horizon/src/test/resources/drivers/geckodriver.exe" );
WebDriver driver = new FirefoxDriver();
driver.get("https://github.com/");
}
}
I am using selenium-java-4.10.0.jar
, and geckodriver (v0.32.0 )
firefox 102.9.0esr (32 bits)
, windows 10
And I have tried all the version but I usually have the same error