You’re overcomplicating it.
You say that a value such as “9009401” is in the same row, so you can use the tableRow attribute of the value’s selector in the checkbox selector.
First, you need to understand how to edit a variable into the selector, so you can replace the tableRow attribute of the checkbox. To do this, you simply click in the Property box for Selector, and you should notice that the selector is surrounded by quotations, therefore is a string. Then, you can concatenate variable inplace of the number for row.
Here’s what you can simply do…
Use Get Attribute Activity with tableRow as the attribute, and store this to a string variable
— use the number directly in the selector for the aaname or innertext attribute (no For Each needed on the website). Your selector might look like:
"<webctrl aaname='"+value.ToString+"' tag='DIV' />
Now that should get you the tableRow to use for the checkbox.
The selector might look like this:
"<webctrl aaname='Click to mark row' tableRow='"+tableRow.ToString+"' tag='INPUT' />"
So all in all, you can do this in 2 activities:
So I think that makes it very simple. Hope it helps.
EDIT: you can replace the Check activity with the Click activity and use same selector. Sorry used wrong activity and assumed it was a checkbox.