2

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?

Arka
  • 101
  • 1
  • 8

1 Answers1

2

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

UnknownBeast
  • 979
  • 1
  • 6
  • 13