In for Each I am clicking particular text can i get the row number
Hi @Relangi_Siva
By using rowindex function you can get the row number
Ex: index = row.rowindex
- First, use the Read Range activity to read the data from your Excel file into a DataTable variable.
- Next, use a For Each Row activity to loop through the rows in the DataTable. Inside the loop, use a Condition activity to check if the value of the cell in the current row matches the text you are looking for.
- If the condition is met, use the RowIndex property of the current row to get the row number. You can store the row number in a variable and use it later in your workflow.
Hi @Relangi_Siva ,
Welcome to the UiPath Forum!
Would you be so kind as to include more details along with some screenshots of the issue you are facing?
Its hard to propose a solution when very little detail is provided, but I’ll try my best.
If this text you are clicking on is a UI element, here is what I would suggest - use the UI Explorer to analyse the properties and attributes of the UI Element - which in your case will be the row.
If you find a tableRow or an idx (if you are using the Active Accessibility Framework) attribute among them, then you can use the Get Attribute Activity to fetch the row.
Let us know if that answers your query.
Kind Regards,
Ashwin A.K