org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms

柔情痞子 提交于 2019-11-29 09:07:39

Your version of Selenium is probably not compatible with your version of Firefox. Try installing an older Firefox version.

  1. Before installing and older version, go into Firefox and turn off the automatic update option.

    Firefox --> Options --> Options --> Advanced --> Update --> Check for updates, but let me choose to install them

  2. Go here and install and older version. https://ftp.mozilla.org/pub/mozilla.org/firefox/releases/

    You don't have to uninstall Firefox, just install the version you want to install. You may have to try a few versions until you get the right one.

I just had this problem setting up JBehave for WebDriver using maven. I forced JBehave to use a higher version of selenium in the following way, which works for me:

<dependency>
    <groupId>org.jbehave.web</groupId>
    <artifactId>jbehave-web-selenium</artifactId>
    <version>${jbehave.web.version}</version>
    <exclusions>
        <exclusion>
            <groupId>org.seleniumhq.selenium</groupId>
            <artifactId>selenium-java</artifactId>
        </exclusion>
    </exclusions>
</dependency>
<dependency>
    <groupId>org.seleniumhq.selenium</groupId>
    <artifactId>selenium-java</artifactId>
    <version>2.33.0</version>
</dependency>

None of the mention solutions worked for me. What worked for me is to use latest Firefox (currently 32.0.2) and latest selenium

    <dependency>
        <groupId>org.seleniumhq.selenium</groupId>
        <artifactId>selenium-java</artifactId>
        <version>2.43.1</version>
    </dependency>

Version 2.43.1 worked, 2.42.1 did not.

I had exactly the same problem, i solved it by downgrading Firefox version to 27.0.1

Muhammad A. Alam

When WebDriver version doesn't match the Firefox version, the java compiler throws this error. Make sure your WebDriver and Firefox both are the latest version.

Update to selenium-server-standalone-2.44.0.jar works for me (http://www.seleniumhq.org/download/).

It seems that you need a proper combination of browser, selenium-driver and selenium-server.

Ubuntu 14.04, Firefox 35.0.1 and selenium-webdriver 2.44.0 works for me in a Ruby on Rails app. Chrome didn't work since I updated it, even with the last released driver.

You need to Uninstall the currently installed Firefox. Reinstall the FF with minimum version 18.0.1 This really works.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!