The requested page is not available for the requested platform. You are viewing the content for Default platform.

Code Editor

The Code Editor allows you to write and modify test scripts. To open the editor, double-click a test file's node or a test's node in the Explorer panel. If you create a new test file (see Test Scripts), TestCafe Studio automatically opens the file in the editor.

Code Editor

You can write test scripts using JavaScript, TypeScript or CoffeeScript. Refer to the Test API topic in the open-source TestCafe documentation for information about the API used in tests.

The Code Editor provides the following code edit features: syntax highlight, code completion, parameter hints, bracket matching, go to definition, peek definition and so on.

The editor also provides the Run test button buttons that allow you to run a fixture and individual tests. These buttons are shown in the gutter for lines that define fixtures and tests.