Hi,
Our current application uses win ultragrid. User can create new rows and delete rows from this grid.
When ever user enters an invalid text for a cell in a row, the cell displays a warning icon (16 X 16 png) along with the invalid text.
Similarly, some conditions generate a row level error and the warning icon is shown for the whole row(the image will be displayed at the start of the row having errors).
I am trying to retrieve this image object from QTP.
I have tried the following code(Assuming row 0 has warning icon)
Dim expression
Dim img
expression = "Rows[0].Appearance.Image"
Set img = SwfWindow(...).SwfTable(..).GetNAProperty(expression)
Similarly, for the cells(assuming cell 1 in row o has warning image)
expression = "Rows[0].Cells[1].Appearance.Image"
But both of these fail, even though the corresponding row and cells show a warning image.
Can some one help me out with the correct properties to use to get these images?
Thanks in advance.
Satish.
Just to update
I am using QTP 10 and Testadvantage version 2010.2
Unfortunately, the methods for getting such data is limited. There were advances added in TestAdvantage 10.3, via GetCellAppearance and GetRowAppearance methods. But it's hard to say without looking at a sample application if those methods would give you the results that you are looking for. I would recommend working directly with our developer support personal, and provide a sample if possible from your developer demonstrating how the image was set\altered as there are a great number a ways it could have been set.