Parameterize Clicks
The Parameterized Click option allows you to extract the click text as an Example parameter, enabling dynamic changes to the elements being clicked based on the click text.
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.