I am trying to programmatically select image on a page to click depending on a script variable passed in, but all I get is a cursor flying horizontally and vertical across the screen until Robot times out.

I am using SQAGetProperty with various loops to identify desired objects on a page.

I am able to programmatically identify links based on a portion of the hRef, but when I use the index to click on them, the spastic cursor kicks in.

I wrote another function that can find the image whose outerHTML matched the innerHTML of the link. The problem is that if we use the same image for different links, so this produces undesired results.

Any help is appreciated.