Update your web tests

Learn how to reorganize test steps, fix selectors, add reusable components, and use variables to update your web tests.

After recording a test, you will often want to reorganize it, fix a selector, or insert new steps. This guide covers the most common modifications.

Interactive tutorial


Step-by-step guide

Organize steps into groups

Groups make long tests more readable and let you structure the flow by feature.

1
Create a group from a step

Right-click on the step where you want the group to start, then select Create a step group from here.

2
Rename the group

Click the group to expand it, then edit its name (for example "Free trial", "Login").

3
Create an empty group

Click Create a new group to add an empty group you can fill later.

4
Delete a group

Click the ... icon on the group, then click Delete.

Deleting a group also deletes all the steps it contains.

Insert reusable components

1
Add a component

Click the + icon, then select Insert a reusable component.

2
Choose the component

Select the desired component from the list. The corresponding steps are inserted into your test.

3
Clean up duplicates

If any steps duplicate the inserted component, right-click them and select Delete.

Modify selectors

1
Open the selector panel

Click the arrow on the right side of a step to display the selector side panel.

2
Find a new selector

Use the Kompagnon extension and click Find selector to identify a more reliable selector.

3
Apply the selector

Copy the selector from the extension and paste it into the corresponding field. A green icon confirms the selector is valid.

Add and reorder steps

1
Insert a step

Click the add icon between two existing steps, or click Add a step at the end of a group.

2
Choose the action type

Select the action type from the dropdown (click, text input, etc.).

3
Configure the step

Fill in the required fields: step name, selector, value. The name matters because it identifies the step in results.

4
Reorder with drag and drop

Drag and drop steps to change their execution order.

Use variables

Instead of hardcoded values, use variables to make your tests reusable.

1
Insert a variable

In a value field, click the icon.

2
Choose the source

Select a variable from a previous step, a random value, or a global variable.

What's next?

Web step types

Explore all available actions for your web tests.

Variables

Learn more about variable management in your tests.

Last updated on