Joao Martins
Joao Martins

Reputation: 23

Is there a way to point TestCafe at "localhost" instead of the machine IP?

I've noticed that the browser always connects to the computer by way of IP address. I suspect a new firewall is blocking this connection for me. Other services of mine work when I connect to them as localhost. Is there a way to have the browser launched by TestCafe connect to localhost instead of the IP address? Thanks.

Upvotes: 1

Views: 1744

Answers (1)

Alex Kamaev
Alex Kamaev

Reputation: 6318

You can use the hostname flag. Please see: https://testcafe.io/documentation/402639/reference/command-line-interface#--hostname-name

Upvotes: 2

Related Questions