

Specify a path to the browser executable if you use a portable version of the browser. testcafe "chrome:headless" tests/sample-fixture.js Use the :headless parameter to launch a browser in headless mode. TestCafe allows you to run tests in Google Chrome and Mozilla Firefox without a visible UI shell - in headless mode ( Chrome Headless , Firefox Headless). See Browser Provider Plugin for instructions. To run tests in a different type of browser, use a browser provider plugin. Set the MICROSOFT-EDGE: protocol to Legacy Edge. To test with the Legacy version of Edge, open Default apps in Windows Settings and scroll down to select Default Apps by Protocol. If both Chromium-based and Legacy versions are available, you can change the default Edge application in System Settings to test with the Legacy version. Tests are run in Microsoft Edge Legacy if it is the only version of Edge installed on the machine. Their names begin with the testcafe-browser-provider- prefix: .

You can search npm for community-developed plugins. The following plugins for cloud services are currently provided by the TestCafe team. You can access them through browser provider plugins. TestCafe allows you to use browsers from cloud testing services. Note that when you run tests in a remote browser, you cannot take screenshots or resize the browser window. It then connects to the TestCafe server and starts the test. Access this URL from the desired browser. This URL is then exposed through the API or displayed in the console.
