0

I am using Selenium WebDriver to automate my testcases, and I am getting:

  org.openqa.selenium.WebDriverException: Unable to bind to locking port 7054 within 45000 ms
    Build info: version: '2.30.0', revision: 'dc1ef9c', time: '2013-02-19 00:15:27'
    System info: os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.7.0'
    Driver info: driver.version: FirefoxDriver
    Command duration or timeout: 47.94 seconds
    Build info: version: '2.28.0', revision: '18309', time: '2012-12-11 15:53:30'
    System info: os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.7.0'
    Driver info: org.openqa.selenium.remote.RemoteWebDriver

An Exception by controlling browser instances, can it will be solved? How can you control browser instances to 1 or 2?

testing
  • 1,736
  • 15
  • 46
  • 75
user2018017
  • 75
  • 2
  • 4
  • 10

4 Answers4

1

Try below things

By killing all firefox instances (Go to task manager and kill all firefox processes.)
or
By uninstall & install firefox.
Santoshsarma
  • 5,627
  • 1
  • 24
  • 39
1

We can resolve it by upgrade your Selenium Jar and Firefox browser version to the latest one.

docs.seleniumhq.org/download/ -Selenium JAR

www.mozilla.org/en-US/firefox/new/ -Firefox

Brad Larson
  • 170,088
  • 45
  • 397
  • 571
0

This is because, when you upgrade the old version of Firefox or when the Firefox browser gets upgraded. By this, the Webdriver binding port is not matching with the Firefox.

  1. Just uninstall the firefox and install the firefox again.
  2. Download the latest Selenium Webdriver
Prabu Ananthakrishnan
  • 4,139
  • 1
  • 12
  • 16
0

Upgrade your Selenium server to latest one . Latest Firefox version brings up these kind of issues . Downgrade your firefox version.

Rocky
  • 1
  • 1