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

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

I am using Firefox 30 and selenium webdriver version is: selenium-java-server 2.44

I am getting this error. My code is

package executionEngine;

import java.util.concurrent.TimeUnit;

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

//import java.util.concurrent.TimeUnit;
//import org.openqa.selenium.*;
//import org.openqa.selenium.firefox.FirefoxDriver;

public class DriverScript {
private static WebDriver driver = null;
public static void main(String[] args) {
driver = new FirefoxDriver();
driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
// driver.get(“http://www.store.demoqa.com”);
driver.get(“http://www.google.com”);

driver.findElement(By.xpath(“.//*[@id=’account’]/a”)).click();
driver.findElement(By.id(“log”)).sendKeys(“testuser_3″);
driver.findElement(By.id(“pwd”)).sendKeys(“Test@123″);
driver.findElement(By.id(“login”)).click();
driver.findElement (By.xpath(“.//*[@id=’account_logout’]/a”)).click();
driver.quit();
}
}

ashu211 Default Asked on December 4, 2014 in Selenium WebDriver.
Add Comment
1 Answer(s)

Hi Ashu,

Yes, this is a known issue. Either you upgrade or downgrade Firefox version or do the same for Selenium. It will work. These two are not working together change either of it “Firefox 30 and selenium-java-server 2.44″.

Regards,
Lakshay Sharma

xLov3rDns Professor Answered on December 8, 2014.
Add Comment

Your Answer

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