Exception in thread “main” org.openqa.selenium.WebDriverException: Unable to bind to locking port 7054 within 45000 ms

I am using Selenium Java 2.44 and Firefox version 33.  I have the below code. and while running I am getting following error. Facing same problem with Selenium Java 2.45 and Firefox verion 38.

package webdriverlaunch;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;

public class LaunchFirefox {

public static void main(String[] args) {
System.out.println(“Welcome!”);
System.out.println(“PropertySet”);
WebDriver driver = new FirefoxDriver();

}
}

———————-
Ouput
———————-
Welcome!
PropertySet
Exception in thread “main” org.openqa.selenium.WebDriverException: Unable to bind to locking port 7054 within 45000 ms
Build info: version: ‘2.44.0’, revision: ’76d78cf’, time: ‘2014-10-23 20:03:00′
System info: host: ‘PC211711′, ip: ‘10.241.38.233’, os.name: ‘Windows 7′, os.arch: ‘x86′, os.version: ‘6.1’, java.version: ‘1.7.0_51′
Driver info: driver.version: FirefoxDriver
at org.openqa.selenium.internal.SocketLock.lock(SocketLock.java:98)
at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:84)
at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:246)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:114)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:193)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:186)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:182)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:95)
at webdriverlaunch.LaunchFirefox.main(LaunchFirefox.java:11)

Add Comment
0 Answer(s)

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.