Parameterize Clicks
You can extract the text of a clicked element as a parameter using the Parameterized Click feature. This allows you to dynamically change which element is clicked during test runs without re-recording steps.
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 to clickText = "Reports"
to test the "Reports" section without recording a new step.
How To Parameterize Clicks
Expand the step where the
click
action is recorded.Hover over the
click
action, click the three-dot menu, and toggle Parameterized Click.The clicked text is extracted as a new parameter under the Examples section.
You can now update this parameter's value to simulate clicks on different elements during test runs.
After publishing the recording, you will see the click-text parameter in the Examples section of the generated scenario.