How to run testcafe from docker on remote selenium grid How to run testcafe from docker on remote selenium grid docker docker

How to run testcafe from docker on remote selenium grid


Can the Selenium server access your local machine by the hostname rather than IP? If so, try the following approach.

Add the extra_hosts parameter to docker-compose.yml

auit:   extra_hosts:      - "my-hostname:127.0.0.1"

where my-hostname is the hostname of your local machine visible to the Selenium Grid.

Then specify this hostname in TestCafe's --hostname parameter as you did with the IP.

However, if the use of the IP instead of the hostname is the only option, it will require more effort to implement this (if possible at all).