org.apache.http.conn.HttpHostConnectException: Unable to establish connection to host at 127.0.0.1 on port 7055

A problem has arisen with Selenium Webdriver(2.53) and Java (jdk 7). Mozilla Firefox ESR (45.2.0) crashes immediately upon opening a page, displaying the following error message:

An Error Has Occurred

org.openqa.selenium.remote.UnreachableBrowserException: Error communicating with the remote browser. It may have died.
Build info: version: '2.53.0', revision: '35ae25b1534ae328c771e0856c93e187490ca824', time: '2016-03-15 10:43:46'
System info: host: 'ADMINIB-8GSESH3', ip: '9.84.222.238', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.7.0_71'
Driver info: driver.version: RemoteWebDriver


Capabilities [{platform=WINDOWS, acceptSslCerts=true, javascriptEnabled=true, cssSelectorsEnabled=true, databaseEnabled=true, browserName=firefox, handlesAlerts=true, nativeEvents=false, webStorageEnabled=true, rotatable=false, locationContextEnabled=true, applicationCacheEnabled=true, takesScreenshot=true, version=45.2.0}]
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:665)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:701)
    at org.openqa.selenium.remote.RemoteWebDriver.quit(RemoteWebDriver.java:526)
    at com.refread.fed.search.utils.WebDriverUtils.close(WebDriverUtils.java:711)
    at com.refread.fed.search.connector.headless.IEEE.searchResults(IEEE.java:106)
    at com.refread.fed.search.connector.headless.IEEE.main(IEEE.java:147)
Caused by: org.apache.http.conn.HttpHostConnectException: Connect to 127.0.0.1:7055 [/127.0.0.1] failed: Connection refused: connect
    at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:151)

Answer №1

Figured out the answer. It was due to a compatibility problem with the versions. Resolved by adjusting the pair of selenium and firefox. The correct versions were Selenium 2.52.0 and Firefox 45.2.0. Problem solved!

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Guide on how to dismiss the "set as default mailto link application" popup in the web browser with Java Selenium

I'm currently working on a Selenium automation application and encountering an issue with a popup that shifts the HTML down in the browser window, making it difficult to click. I am using Firefox for this project. Is there a way to either close this ...

Challenges Faced During Web Scraping in Python Using Selenium

I'm encountering multiple issues while trying to scrape a website using selenium and could use some assistance. Within my code, I consistently run into a cycle of three distinct errors each time it is executed. The code snippet in question: from sel ...

Can TestNG and Ruby be combined for automation testing? Are there any other Ruby tools that support parallel automation testing?

While it is common to use TestNG, Selenium WebDriver, and Java for parallel execution of browser automation test cases, I am facing a situation where Ruby scripting is required. Is there a way to achieve parallel automation execution of browsers using Te ...

Retrieve information from HTTP POST request form

Usually, the standard process for logging into a website requires entering an email and password. However, I recently discovered that there is an additional mysterious field labeled '-_-' that appears to have a constantly changing value each time ...

Can you explain the functionality of setElementConverter in Selenium WebDriver and how it is used?

Having trouble locating an element after a page refresh. Any attempt to interact with the element results in a StaleElementReferenceException error stating that the element is no longer valid. Found some information on this issue at this link The URL abo ...

Launching a blank webpage by employing Selenium and a web driver

I'm trying to create a webpage using chromedriver and here is the code I have so far: from selenium import webdriver url = "wow.com" driver = webdriver.Chrome("/Users/macbook/Desktop/chromedriver") driver.get(url) But when I run it, this is what h ...

The undetected_chromedriver is working perfectly in its full mode, but seems to run into issues when switching to headless mode

I am attempting to access a website using undetected_chromedriver in headless mode. The website utilizes Cloudflare. When I use the script without headless mode, it works fine. However, when I set headless = True, a captcha appears. import ssl import time ...

excluding the use of selenium in tests with the Maven profile

Upon running mvn clean install, I have attempted to exclude Selenium tests by modifying the code in my pom.xml file using a profile. However, it appears that my changes are not taking effect. Can anyone help me identify what might be going wrong? This is ...

Displaying the values stored in the "Salary" column

I'm currently struggling with trying to print a specific column from a Webtable, specifically the "Salary" column. I can't seem to figure out how to do this on my own, so any help would be greatly appreciated. import java.util.List; import org. ...

"Gecko Driver is throwing an error stating that it is unable to execute the

I keep encountering the issue "unable to run binary file" Running gecko driver version 19.0, using selenium 3.6 with Firefox 56 Here is my code snippet and the resulting error message: ...

Ways to shut down Python selenium webdriver window

I have a python script that extracts data from a website every hour. It is currently stored on the server and functions well with the help of task scheduler to run it hourly. Within my code, I use the following: driver.quit() This command is used to clo ...

Encountered a problem with the Chrome driver where a new session could not be initiated. Received response code 500 with the message: "unknown error: unable

I am currently using Chrome Version 110.0.5481.77 and Selenium version 4.8.1 but I keep encountering an error while running my script. The driver crashes and the website fails to load. Caused by: org.openqa.selenium.SessionNotCreatedException: Could not st ...

Generating a backup of the database using the web application's graphical user interface

Does anyone know if it's possible to create a database dump or back up data directly from the browser interface? I'm looking for a way to back up my database within my web application. ...

Looking for assistance in modifying an element using Python and Selenium?

I am working with the following element <p id="LIST_VAR2">3</p> Is there a way to use Selenium to replace the 3 with 10? ...

Is it possible to create a Cypress report that only includes the successful test cases and excludes the failed ones?

Hello everyone, I trust you are well. Currently, I am seeking a solution to exclude failed test cases from Cypress XML report when using Junit as a reporter. The issue arises when importing test results into Jira, as failures create duplicate tests instead ...

Tips for extracting YouTube video descriptions using Beautiful Soup

I've been attempting to scrape a list of YouTube videos and extract their descriptions but have been unsuccessful so far. Any guidance on why this may be happening would be greatly appreciated. (Here is the YouTube video in question: https://www.youtu ...

The functionality of JavaScript on an icon that is supposed to expand and collapse a table is not functioning properly when the enter

On this particular page, I have a toggleable table of information that expands and collapses when the user clicks on a clickable +/- icon. However, there seems to be an issue where if the user tabs to the icon and tries to expand/collapse it by pressing en ...

Tips on Comparing Date and Time in Android Platform

Two dates are present, date1 (current) and date2 obtained from a JSON string as 2016-07-09 21:26:04. I need to perform a comparison between these two dates using the following logic: if(date1 < date2){ } ...

Selenium Server operates in a manner distinct from WebDriver

I'm experiencing some challenges with Selenium. Let me try to outline the setup I have and what I am attempting to accomplish. Summarized Version: My automated tests run smoothly locally using a Ruby webdriver gem. However, when I run the same scrip ...

Converting Nested Classes into Rows in a Table using Spring Framework

Currently, I am utilizing Spring Boot along with several essential dependencies such as Jackson and Hibernate. Within my project, there exists a table named Buildings which consists of columns like Unit, Number, Street, and more. However, instead of direct ...