I have a situation here, in a portal, there is a table, which consist of multiple rows, it can three, four or even two some times. I search with a particular child name, but as there are sibilings for them, all of their information gets listed, all i wanted is to click on the respective child name.
here is the flow
enter child last name and first name and hit search
click on child info tab to see the list of the child’s
now multiple child information gets listed, respective child name which i entered in the beginning to search should be clicked. attached reference screenshot
I hold variable which enters last name and first name to search and Name gets listed like below in the table. suppose if i need to click on the last one, how do i do it, here is the selector information.
I have attempted to set one, based on your suggestion, maybe i did not get it right could you check on it
After Data Scraping, iterate through the DataTable
For Each row In childDataTable.Rows
Assuming the child's name is in the first column (Index 0)
If row(0).ToString.Equals(childName, StringComparison.InvariantCultureIgnoreCase) Then
Construct the selector dynamically (adjust the selector as needed)
childSelector As String = “” & _
“
” & _
“” & _
“”
Using Click activity with dynamic selector
Click activity
Selector: childSelector
End Click
Exit the loop once the child is found and clicked
Exit For
End If