Problem with Sending HTTP Requests Using Java’s HttpClient After Fetching Data via Selenium WebDriver
I’m currently working on an automation test suite where I use Selenium WebDriver to navigate a web application and retrieve configuration data from the browser’s local storage. I can successfully access the health endpoint of the application using Selenium WebDriver by performing a simple driver.get() request. However, when I attempt to replicate the same request using Java’s HttpClient, the request fails with a ConnectException or UnresolvedAddressException.