'org.openqa.selenium.WebDriverException: Unable to bind to locking port 7054 within 45000 ms, exception using Selenium Java

I have the above error in Linux Firefox Selenium Eclipse, I have been trying to install Mozilla Firefox 47.0.1 so that I dont have to use geckodriver(), But I find no way to install this.

System.setProperty("webdriver.gecko.driver", "/home/user123/SELENIUM/gechodriver");
FirefoxDriver bd=new FirefoxDriver();
bd.manage().window().maximize();
bd.get("https://www.google.com/");

My Mozilla version is 98.0 and geckodriver version is 30.0.

Suggest me some ways to solve this error. I have no idea about versions that are compatible to each other(geckodriver and firefox).



Solution 1:[1]

Possibly there is a typo and instead of gechodriver it should have been geckodriver.

Effectively, your line of code would have been:

System.setProperty("webdriver.gecko.driver", "/home/user123/SELENIUM/geckodriver");

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 undetected Selenium