Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
468
Need help retrieving error text from different cells in a grid
posted

I'm using QTP 10 with TestAdvantage 2008 Vol. 2 working on an Infragistics SwfTable.

I know how to retrieve the error text from the end of a row. What I don't know is how to retrieve the error text from different columns in a single row. Can anyone help??

This is what I use to retrieve the error text from the end of a row:

Dim x
 x = SwfWindow("Bonus Administrator 2010").SwfTable("BranchWorksheetGrid").GetNAProperty("Rows[1].ListObject.Row.RowError")
If Len(Trim(X)) > 0 Then
Reporter.ReportEvent 0, "The error text is", x
Else
Reporter.ReportEvent 1, "The error text is", x
End If

Thanks in Advance,

FredMan