The Visual Test Recorder allows you to create tests without writing code. It records your actions as you interact with the webpage in the browser and generates a test.
Do any of the following:
Enter the tested website's URL and click Start recording a test on the Welcome page.
This creates a new fixture in the root directory.
Open the Fixture Editor and click Record a new test on the toolbar.
Click Record test actions on the Test Editor's toolbar to record new steps. TestCafe replays the existing steps and waits for you to perform new actions.
After you click the Record button, TestCafe Studio launches the browser and starts recording your activity on the tested page.
You can do the following during test recording:
Interact with the web page (click and drag elements, press keys, etc.). TestCafe Studio records your actions and adds them to the test.
Add actions from the Actions panel to the test.
You can use an element picker to select a target element on the tested page when you add an on-page action or assertion. To do this, click the button in the action parameters' area and click an element on the page.
When you create an assertion, you can also choose a property from the auto-generated property list. See Assertion Parameters.
Close the browser or click on the Test Editor's toolbar to stop recording.
You can record tests in local browsers. TestCafe detects browsers on the local computer and adds them to the Record Browser drop-down menu. To change the browser in which tests are recorded, select it from the list.