You can add a click action as a step by using the Click step
from the UI catalog.
You must have completed the following tasks:
- Ensured that you are assigned a Team Space Owner, Project Owner, or Member
with a Tester role to create or edit a test resource.
- Read and understood the information in Edit branch overview and
Create or select an Edit branch.
- Ensured that your project contains a Web UI test.
-
Click the
button displayed on the Test
Editor page.
The Edit button appears only when no active edit branch is
selected.
Alternatively, right-click the test in the test navigator panel and select
Edit.
The Edit branch dialog is displayed.
If the
Edit branch dialog is not displayed, then go to step
3.
-
Select an existing edit branch or create a new edit branch.
-
Drag and drop the Click element under any test step as required
from the UI catalog in the Catalog
tab.
-
Click the Click step.
The step details pane is displayed.
-
Perform the following steps in the step details pane:
- Right-click a UI object in the Smartshot pane and select
Use this element as step target.
The UI
Object type, Click action, and values for
Object identified by are displayed. Optionally, you can
modify the values that identifies the object.
- Optional: Select the Click here to add alternative
identifier link to select one more object that works as an alternative
target if the first object was not found.
-
Click the Save icon
to save the modifications.
You have added a Click step from the
UI catalog to add user actions in a Web UI test.
You can run the test and view the results. See Running a Web UI test.