有没有办法将 TestCafe 指向 "localhost" 而不是机器 IP?

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

我注意到浏览器总是通过 IP 地址连接到计算机。我怀疑新的防火墙正在为我阻止此连接。当我作为本地主机连接到它们时,我的其他服务工作。有没有办法让 TestCafe 启动的浏览器连接到本地主机而不是 IP 地址? 谢谢

您可以使用 hostname 标志。请参阅:https://testcafe.io/documentation/402639/reference/command-line-interface#--hostname-name