If your computer is connected to multiple networks (for instance, if it uses a VPN connection), TestCafe may incorrectly detect the host IP and not open the tested pages: cannot open the page because is unable to establish a secure connection to the server. To fix the issue, launch TestCafe with the --hostname localhost CLI option: testcafe chrome test.js --hostname localhost