Webdriver 2.20 and Firefox 11 (cannot be associated with blocking port 7054)

I am using WebDriver with Firefox 3.6 and it works great. I want to update 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 do not use a hub.

 driver= new FirefoxDriver(); 

I even tried to use a 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 
+6
source share
3 answers

Despite the fact that in an altered state , it indicates that Selenium 2.20.0 is not yet fully compatible with FF11. You can either switch to FF10 (or 9, not sure now :)), wait for Selenium 2.21.0 to exit, or try to build your own Selenium from the trunk there.

+2
source

After you tried all the solution offered here without any success, I just completely removed firefox (including all profiles) and reinstalled it, as suggested here https://groups.google.com/forum/#!topic/webdriver / 600j__wM0qY

This, of course, is not a satisfactory solution, but a worker.

+1
source

Even when 2.20 is not yet fully compatible, it works on my machine with Firefox11. I assume that you still have Firefox 11 and 3.6 installed at the same time. Maybe you should try:

 WebDriver driver = new FirefoxDriver(new File("path/to/firefox11/firefox.exe")); 

But, if that doesn’t work, you are probably out of luck on your machine ...

0
source

Source: https://habr.com/ru/post/912821/


All Articles