Commands Editor allows you to view your test cases in SQL-like language where you can add steps, edit existing steps and validate the script before saving.
1- On your test case, click Advanced View and the first tab will open automatically.
2- You can make changes to the script and validate it before saving. For example, let’s change the Wait period in step 5 from 2 seconds to 5 seconds. After clicking Validate, a message will appear to inform us that the script is correct and you can save your test case.
Snippets
You can use snippets which make it easier to author steps using the Advanced Commands Editor.
1- To start, click on the first line to enter your first command.
2- Enter “click” where you will see the snippet ‘web.click'. Navigate to it using your keyboard and click Tab.
3- The first part of the snippet that requires editing will be highlighted in blue and is ready for you to make changes.
4- Enter the name of the locator and click Tab again to navigate to the next part of the snippet
5- If you would like to add a custom caption, you can enter it in the double quotes. If not, you can leave it the way it is or press Delete on your keyboard to remove it.
6- Once finished, click Validate to check that the script is correct.
7- Click Apply in order to apply the script to your test case.