Forum Discussion

macheshmeh's avatar
macheshmeh
Contributor
9 months ago

How to click last row of the grid?

I want to click on the first cell from the last row in the table ? with Spy , i can fond the name of last row but because the last number of the row depends to the data and data every time change , i want to click on first cell of last row , i mean i want say to the test go find last row and get value of the first cell 

with (Ctrl+end ) , test is able to find last row but I can't click on it at the same time 

  • I found the solution , with rowCount , i found the number of row , and in adress of Object i used the full name and instead of the number of row i wrote rowCount and it works 

3 Replies

  • I found the solution , with rowCount , i found the number of row , and in adress of Object i used the full name and instead of the number of row i wrote rowCount and it works 

    • Ali2's avatar
      Ali2
      Occasional Contributor

      Hi,
      I am having the same issue instead I want to select the first row of the grid.
      Can you please elaborate the solution further, it will be a great help

  • rraghvani's avatar
    rraghvani
    Champion Level 3

    Object Spy will not spy on individual cells, only the UI control. You have to see what properties and methods are exposed by Object Spy, and try to use those to select individual cells of your table.