Parameterize Clicks
The Parameterized Click feature lets you extract the text of a clicked element as a parameter, allowing you to change which element is clicked dynamically during test runs.
Navigating to Different Sections on a Dashboard:
- Scenario: A dashboard has various sections like "Analytics", "Reports", and "Settings", each represented by a button.
- Usage: Parameterize the click action based on the button text to dynamically test navigation to different sections.
- Example: Parameterize
clickText = "Analytics"
and change it toclickText = "Reports"
to test the "Reports" section without recording a new step.
Parameterizing Clicks
To parameterize a click:
Expand the step where the
click
action is recorded.Hover over the
click
action, click the three-dot menu, and toggle Parameterized Click.The
click
action text will be extracted into a new Example parameter, allowing you to change this value to dynamically select which element is clicked during test runs.After publishing the recording, you will see the click-text parameter in the Examples section of the generated scenario.