Usually what I will do to accomplish this, and also avoid complex for each loops and whatnot, is to simply use the selector and the tableRow attribute.
Now, this idea will depend on the selector generated by the web application. - You will want to use UiExplorer for this to ensure that you can see an attribute with “Open” and a “tableRow” attribute.
So, essentially, you do this in 2 steps:
- Get Attribute activity => use “tableRow” (or whatevever the table row attribute is called in UiExplorer). Use the “aaname” or “innerText” attribute in the selector which says “Open”, while not including any other attributes except for Tag. This, should allow it to look at the first instance of the element with “Open”
- Now by having the tableRow stored in a string variable, you can use this in the Click activity’s selector. Use UiExplorer to generate a selector that includes the tableRow attribute in it. Then, in the Property Selector field, edit the selector as an expression/string. You may need to click in the property box, so it is surrounded by quotations, since it should be a string.
Selector should look something like this:
"<webctrl aaname='Account*Equipment*' tableRow='"+tableRow.ToString+"' tab='A' />"