I’m using Find Children activity to get elements inside a table. What I want to do is to click the specific TD inside my Table parent regarding each TR level. The structure is something like this:
<table>
<TR>level 1 ok</tr>
<TD>Cell i want to Click</TD>
<TR>level 2 ok</tr>
<TD>Cell i want to Click</TD>
<TR>level 3 ok</tr>
<TD>Cell i want to Click</TD>
<TR>level 5 ok</tr>
</table>
Select scope as FIND_DESCENDANTS in find children activity
Inside for each you can use Get Attribute (aaname or tag) to find the specific TR and then use if condition to filter TD’s
Or you could do something like this in For Each (you need to manipulate per your requirement)
For each child in children.Where(Function(x As UiElement) x.Selector.ToString.Contains("tag='TD'") and x.Parent.Selector.ToString.Contains("aaname='level'"))
inside for each use click activity and pass your child