All Collections
#4 Editing Trace
#4 Editing Trace

How to make changes to traces

Arto Vuori avatar
Written by Arto Vuori
Updated over a week ago


In this tutorial, we’ll edit the register trace by adding a check step between steps and changing the check’s attributes.

  • Edit / maintain register trace by adding steps

  • Change step locators (HTML locators)

  • Set step timeout

1. Add a Step Between Steps

Now we have the “Register” trace opened which we created earlier. Click the plus sign between step 1 and step 2 to move the Pointer between the steps.

2. Add check

Now the Pointer has moved between the steps. Add a check by selecting check mode on the Pointer (2) and click “REGISTER” on the Virtual Browser (3).

3. Opening Locators & Check Value

Click the locators from the newly created check step by hovering the mouse over it to open the locators for this step.

4. Locators

The locators are pointing to the element on your web page which contains the “REGISTER” string. The editor automatically generates the unique locators it can find when adding a step. You can add, edit or remove locators for a step here. A step uses all its defined locators one by one until it finds a match (at least one locator matches) on the web page.

5. Changing Check Value

The check can verify that the target element exists or that it has the correct content. By default, it will verify the text content.

Let’s change the value from “REGISTER” to “CREATE ACCOUNT”, so we can see what happens when a check cannot find what it’s looking for. Any changes to values will be automatically saved.

6. Step Timeout

The timeout setting defines how long will the trace poll for the success of this step - how long to look for the “CREATE ACCOUNT” string.

Change the timeout to 3 seconds by using the slider (1) to make the trace fail quicker.

Click Chrome to run the trace with Chrome (2).

7. Step Fail View

When a step fails, an error message is shown after step (2).

Let’s fix this step by opening the locators.

8. Step Fail View

Now, instead of changing the text value from “CREATE ACCOUNT” back to “REGISTER”, we are going to select “Element Exists” (1). If any of the locators matched an element on the web page, this check will be successful. This setting is helpful if the site is changing often and we don’t want to be updating the traces when the content changes.

Run with Chrome to make sure the trace passes.

Did this answer your question?