Is there a way to check the checkboxes randomly or to select all checkboxes in test recorder?
Hello @svamsikrishna532, thanks for reaching out.
as we talked over zoom, you can click on a random checkbox by performing the following:
- count the number of the checkboxes using the “Count Elements” action and save the output into a parameter, for example:
generate a random number in a range of 1- num_of_checkboxes (the parameter you just created) using “Random number in a range” action, for example:
using the generated random number, use it as an index of the checkboxes array and perform a “click” action, for example:
running these three steps in a sequence will click on one of the checkboxes randomly
an add-on to click on all checkboxes in a single step will be released in the next coming day.
Thanks much, Meidan
Also, this would be great if possible include the below features like-
- Select multiple checkbox in a single test step
- Select alternate checkbox
- Select first n number & last n number checkbox
- Select all checkbox .
Could please update here ones the addon is ready.
you can install it and use the actions provided by this addon to manipulate lists of checkboxes
by the way, you can use “Click on N Checkboxes Randomly” with N set to 1 for the first question you asked above.