vikramvi
vikramvi

Reputation: 3595

How to point RemoteWebDriver to one of the multiple standalone docker selenium standalone chrome browsers?

I've requirement to run test cases on separate chrome browsers running inside docker container.

I've install chrome docker containers as below

docker run -d -p 4444:4444 -p 5900:5900 -v /dev/shm:/dev/shm selenium/standalone-chrome-debug:3.8.1-francium

docker run -d -p 4444:4444 -p 5901:5900 -v /dev/shm:/dev/shm selenium/standalone-chrome-debug:3.8.1-francium

Upvotes: 2

Views: 2859

Answers (1)

vikramvi
vikramvi

Reputation: 3595

Got it working with help of comment from @Flore B.

docker run -d -p 5902:4444 -p 5903:5900 -v /dev/shm:/dev/shm selenium/standalone-chrome-debug:3.8.1-francium

RemoteWebDriver url

http://0.0.0.0:5902/wd/hub

Upvotes: 2

Related Questions