Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Webdriver 2.20 and Firefox 11 (Unable to bind to locking port 7054)

I have been using WebDriver with Firefox 3.6 and it works fine. I want to upgrade my Firefox and run my test cases. But for some reason I get the error below when I try to create an instance of FirefoxDriver.

This is how I do it. I don't use hub.

driver= new FirefoxDriver();

I even tried using profile.

org.openqa.selenium.WebDriverException: Unable to bind to locking port 7054 within 45000 ms
Build info: version: '2.20.0', revision: '16008', time: '2012-02-27 19:03:04'
System info: os.name: 'Windows Vista', os.arch: 'x86', os.version: '6.1', java.version: '1.6.0'
Driver info: driver.version: FirefoxDriver
like image 614
user1323406 Avatar asked Apr 10 '12 07:04

user1323406


2 Answers

Even though the changelog states otherwise, Selenium 2.20.0 is not yet fully compatible with FF11. You can either downgrade to FF10 (or 9, not sure now :) ), wait for Selenium 2.21.0 to come out, or try to build your own Selenium from trunk there.

like image 125
Petr Janeček Avatar answered Sep 27 '22 19:09

Petr Janeček


After having tried all of the solution provided here without any success I simply uninstalled firefox completely (including all profiles) and reinstalled it as suggested here https://groups.google.com/forum/#!topic/webdriver/600j__wM0qY

This surely is not a satisfying solution but a working one.

like image 40
tugelblend Avatar answered Sep 27 '22 20:09

tugelblend