Forum Discussion

Ali2's avatar
Ali2
Occasional Contributor
6 months ago

How to always click on the record on the top of a table

This is a table in my application.
I want to always right click on the record on the top of the table, but during keyword test recording if I click on the order with ID 13532 and I add another record to this table on top.
When I run this keyword test it only clicks on the order with ID 13532 even though it has gone down in the table i.e in the second/third row.
Right now to resolve this issue temporarily I am doing the right click through coordinates which is not good enough as I run the test on different screen on which the coordinates may differ.
What can I do to make it click on the top record?

  • rraghvani's avatar
    rraghvani
    Champion Level 3

    Use the Object Spy tool to see what properties are exposed from your UI object. If it's a table control, you should then see property values of "row", "column" or "cell" something along those lines. You can then uses these property values to pick the exact row/column you want.