Forum Discussion

Avais's avatar
Avais
Occasional Contributor
6 years ago
Solved

Swing table - Getting the visible value from a cell not the underlying data

Hi 

 

I've run into a similar problem to the one mentioned in this discussion: 

 

https://community.smartbear.com/t5/TestComplete-Desktop-Testing/Swing-table-Getting-the-visible-value-from-a-cell-not-the/td-p/131429 

 

I'm finding it difficult to apply the solution in Python and was hoping someone could help me out.

 

Thanks

 
 
  • Hi Avais,

    The last code you posted here calls the getCellRendererComponent method:

     

     

    renderer = table.getCellRenderer(row, col).getCellRendererComponent(table, value, False, False, row, col)

     

     

    According to the article, you are referring it should be getTableCellRendererComponent. Could you please correct the code and try to execute it again. Does this help?