click based on just the occurrence position of an image


I have a set of images which are the same. How can I click then based on just the occurrence position(in sequence).

for ex: I have 10 checkboxes. Can I script say find all the checkboxes and click the second checkbox ?

please advise.


What you seek can be found here:


But when following is executed:

click myImageLocation

I get error mentioned below:
File Not Found click error - couldn’t open image File “20”

Note : I have a page with 20 checkboxed. It did get the number right but cannot click the exact checkbox


I’d just add that to click the second checkbox, you could do this:

click item 2 of everyImageLocation("myCheckboxImage")

Thx for the quick response.

it works!!