Since the word ‘Details’ appears in column 6 of every row, you need some way to relate your desired row number to column 6 of exactly that row.
This is usually done through HTML attributes such as name, id. Since you’re using StudioX, these may not be that easily available or accessible.
Can you please share screenshots of how you’re using the Click activity for step 4? (i.e. clicking the word ‘Details’)
The workflow you shared doesn’t load or interact with any page that has the table with ‘Details’ on each row.
When I run the XAML, this is the kind of datatable that loads for each vendor code:
Also, what @Nithinkrishna suggested is worthwhile to try. I am however wary of using the idx attribute, preferably if you can find something that points to the row and column.
To attempt this, a little more advanced approach could help:
Using the Vendor Inventory as target table, I was able to do this:
Set a column value as target and a corresponding first column in the same table as anchor. Then convert target to a dynamic-text target (changing every row)
You need to install UiPath.UIAutomationNext.Activities package for these activities
Once installed, use the Filter menu in your Activities panel to enable modern activities if necessary (you may see a Show Modern option in this list instead of Show Classic)
They are two different activities (detectable also from their individual icons)