I created a script which basically checks all checkboxes on a page one after another. However I would really like to speed up this process because sometimes there are 300+ checkboxes.
Currently I just work with a click command and the loop variable to loop through all checkboxes.
Instead of using the LOOP button, create a loop inside the macro e. g. with While and make sure you set the replayspeed to fast. => This will be much faster, as it avoids the macro restart and initialization at every loop start.
Hello. My task is very similar to this one.
I need to find the same caption “Illustration” on the page one by one, and click on each. There are 100 of them.
I do not know the syntax to do this.
I don’t recommend using UI Vision looping for this. You can check all checkboxes instantly without any user input by using executeScript. This will all be in one line and it will be significantly faster and more accurate.
executeScript| var inputs = document.querySelectorAll(“input[type=‘checkbox’]”);for(var i = 0; i < inputs.length; i++) { inputs[i].checked = true;}
@newuserkantu this was more directed to the original poster, and it’s not a “one size fits all” deal. From your screenshot, you don’t appear to be using checkboxes. Those look like radio buttons, but the resolution in the screenshot you shared makes it hard to tell.
I’d need to see screenshots of these from your side along with ID, classes, or name attributes if possible. Is this a public-facing page? If so, send a link
Of course! I’d definitely suggest getting strong with Javascript the more you use UI Vision. You can certainly do quite a bit without JS, but your macros will be an a whole other level when you have this in your arsenal.