Forum Discussion

Natasha_2012's avatar
Natasha_2012
Contributor
10 years ago

how to select an invisible row

I have a table object.  My row is currently invisible to user as the list to display is too long and we can display a certain amount of rows at a time.  From that table object, I can retrieve that invisible row object. 

 

My problem here is that I cannot select that row object.  If it is visible on the screen, I can use RowObject.Click to select the row

 

I found this, tried but it is not working https://support.smartbear.com/viewarticle/84359/#_ga=1.202033558.646767055.1476345595

 

 

Call TableObject.ClickCell(row,col,skNoShift) but it does not work.  

I have error Unable to find he object ClickCell(row,col,skNoShift).  

 

Please note, table object is a DataGrid

 

Kind Regards

 Nat

 

 

10 Replies

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor

    For what purpose is the row being selected? Once it is selected, what is the next step? As long as the object exists, you can access it via TestComplete but, depending upon what you want to do with it, there may be other ways of getting the information from the row.

    • Natasha_2012's avatar
      Natasha_2012
      Contributor

      table object tell me the row is existing, but I cannot see as this row is off screen, need to scroll down manually to see.  I need this row display on the screen, either click to view its properties or double click on it to open the content of that item.  Each row just display the name of the item in my list