Error | Selenium Forum
M
Posted on 09/09/2015
package Alllink;

import java.util.List;

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

public class SpecificLink {

public static void main(String[] args) {
// TODO Auto-generated method stub

WebDriver driver = new FirefoxDriver();
driver.get("http://www.junglee.com/");
WebElement box = driver.findElement(By.xpath("html/body/div[8]/div[7]"));
List <WebElement> links = box.findElements(By.tagName("a"));

System.out.println(links.size());
System.out.println(links.get(5).getText());



}

}

i am getting error always and now i installed firefox 29 still getting error


Exception in thread "main" org.openqa.selenium.WebDriverException: Unable to bind to locking port 7054 within 45000 ms
Build info: version: '2.47.1', revision: '411b314', time: '2015-07-30 02:56:46'
System info: host: 'Ultimate-PC', ip: '192.168.91.1', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.7.0_51'
Driver info: driver.version: FirefoxDriver
at org.openqa.selenium.internal.SocketLock.lock(SocketLock.java:99)
at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:90)
at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:276)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:116)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:223)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:216)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:212)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:125)
at Alllink.SpecificLink.main(SpecificLink.java:15)

M
Replied on 09/09/2015

Hi Ashish ,

Kindly help me .
Exception in thread "main" org.openqa.selenium.WebDriverException: Unable to bind to locking port 7054 within 45000 ms
Build info: version: '2.47.1', revision: '411b314', time: '2015-07-30 02:56:46'
package Alllink;

import java.util.List;

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

public class SpecificLink {

public static void main(String[] args) {
// TODO Auto-generated method stub

WebDriver driver = new FirefoxDriver();
driver.get("http://www.junglee.com/");
WebElement box = driver.findElement(By.xpath("html/body/div[8]/div[7]"));
List <WebElement> links = box.findElements(By.tagName("a"));

System.out.println(links.size());
System.out.println(links.get(5).getText());



}

}

i am getting error always and now i installed firefox 29 still getting error


Exception in thread "main" org.openqa.selenium.WebDriverException: Unable to bind to locking port 7054 within 45000 ms
Build info: version: '2.47.1', revision: '411b314', time: '2015-07-30 02:56:46'
System info: host: 'Ultimate-PC', ip: '192.168.91.1', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.7.0_51'
Driver info: driver.version: FirefoxDriver
at org.openqa.selenium.internal.SocketLock.lock(SocketLock.java:99)
at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:90)
at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:276)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:116)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:223)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:216)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:212)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:125)
at Alllink.SpecificLink.main(SpecificLink.java:15)
Post Posted: 09 Sep 2015 13:12


M
Replied on 09/09/2015

try to uninstall Firefox
clean eclipse Project>>clean>>clean all projects
and install Firefox again check the version of firefox compatible with your version of selenium on seleniumhq.org