Arka
Arka

Reputation: 101

org.openqa.selenium.WebDriverException: Unable to parse remote response: <!DOCTYPE html>

I created a Selenium standalone Firefox docker container and started the session in Host port:4545 docker run -d -p 4545:4444 --shm-size 2g selenium/standalone-firefox:3.141.59 I checked with http://localhost:4545/ if opening or not. It worked fine.

When I am trying to connect through my Selenium code, it is throwing me error as: enter image description here

enter image description here

My sample code as below: enter image description here

Please suggest how I can resolve this issue?

Upvotes: 2

Views: 9529

Answers (1)

UnknownBeast
UnknownBeast

Reputation: 979

Change the RemoteWebDriver url from http://localhost:4545/wb/hub to http://localhost:4545/wd/hub

Upvotes: 2

Related Questions