UI Vision script to select specific checkboxes on webpage


Hoping for some guidance on utilizing ExecuteScript within UI vision to select specific checkboxes on screen/a site. I have been using the traditional click and xclick methods, but hoping there is a more efficient way of utilizing executescript.

Ideally, I would have 6 checkboxes on the page and select 3 with a similar title (i.e. StringA).

If you are good at Javascript, you might be able to code something for this and run it inside executescript.

What does not work about the current solution? Just the speed?