Org.openqa.selenium.WebDriverException: cannot communicate with blocking port 7054 for 45000 ms

I ran into a problem while running selenium scripts in Firefox browser.

Console Error:

        org.openqa.selenium.WebDriverException: Unable to bind to locking port 7054 within 45000 ms
        Build info: version: '2.39.0', revision: 'ff23eac', time: '2013-12-16 16:11:15'
        System info: host: 'usnywqa01', ip: '10 .3.3.20 ', os.name:' Windows 7 ', os.arch:' amd64 ', os.version:' 6.1 ', java.version:' 1.7.0_17 ''
        Driver info: driver.version: FirefoxDriver
        Build info: version: '2.39.0', revision: '14fa800511cc5d66d426e08b0b2ab926c7ed7398', time: '2013-12-16 13:18:38'
        System info: host: abc-PV-5 ', ip:' XX.X.XX.XX ', os.name:' Windows 7 ', os.arch:' x86 ', os.version:' 6.1 ', java .version: '1.7.0_07'
        Driver info: driver.version: FirefoxDriver
        at org.openqa.selenium.internal.SocketLock.lock (SocketLock.java:98)
        at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start (NewProfileExtensionConnection.java:84)
        at org.openqa.selenium.firefox.FirefoxDriver.startClient (FirefoxDriver.java:250)
        at org.openqa.selenium.remote.RemoteWebDriver. (RemoteWebDriver.java:110)
        at org.openqa.selenium.firefox.FirefoxDriver. (FirefoxDriver.java:197)
        at org.openqa.selenium.firefox.FirefoxDriver. (FirefoxDriver.java:190)
        at org.openqa.selenium.firefox.FirefoxDriver. (FirefoxDriver.java:108)
        at sun.reflect.GeneratedConstructorAccessor51.newInstance (Unknown Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance (Unknown Source)
        at java.lang.reflect.Constructor.newInstance (Unknown Source)
        at org.openqa.selenium.remote.server.DefaultDriverFactory.callConstructor (DefaultDriverFactory.java:62)
        at org.openqa.selenium.remote.server.DefaultDriverFactory.newInstance (DefaultDriverFactory.java:56)
        at org.openqa.selenium.remote.server.DefaultSession $ BrowserCreator.call (DefaultSession.java:216)
        at org.openqa.selenium.remote.server.DefaultSession $ BrowserCreator.call (DefaultSession.java:1)
        at java.util.concurrent.FutureTask $ Sync.innerRun (Unknown Source)
        at java.util.concurrent.FutureTask.run (Unknown Source)
        at org.openqa.selenium.remote.server.DefaultSession $ 1.run (DefaultSession.java:170)
        at java.util.concurrent.ThreadPoolExecutor.runWorker (Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor $ Worker.run (Unknown Source)
        at java.lang.Thread.run (Unknown Source)

I tried changing the selenium server to 2.35 or 2.39, and I updated ff to 26. But it does not work

When I downgrade ff to 24, my scripts work fine.

  • I would like to know why this happened and the root causes.
  • I would like to know what is a permanent solution for the above 24 version of ff.

Please help me with this.

+4
source share
4 answers

, webdriver. i.e 2.40.0. webdriver firefox, , webdriver: http://selenium.googlecode.com/git/java/CHANGELOG

+1

, , hosts Mac (/private/etc/hosts). , - IP- . localhost, 127.0.0.1, . Firefox (!)

+1

, ..

org.openqa.selenium.WebDriverException: Unable to bind to locking port 7054 within 45000 ms

Selenium Java Eclipse IDE, , firefox, (.. URL- ).

: POM.xml 2.42.x 2.43.1. , .

POM.xml :

<dependencies>
    <dependency>
        <groupId>org.seleniumhq.selenium</groupId>
        <artifactId>selenium-java</artifactId>
        <version>2.43.1</version>
    </dependency>
    <dependency>
        <groupId>junit</groupId>
        <artifactId>junit</artifactId>
        <version>4.10</version>
        <scope>test</scope>
    </dependency>
</dependencies>

selenium firefox ( firefox , , ).

0

The problem seems to be that the latest version of Firefox does not support the web driver. Faced a similar problem, used the instaed chrome driver from Firefox, and it worked.

When we download the web driver and extract it to a folder, the change file will be there, open it with notepad, the specified version of Firefox will be mentioned. Therefore, we can successfully execute the script in the specified version of firefox.

0
source

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


All Articles