Hey Team,
I am using GetCellProperty Function in qtp to fetch the value of x and y coordinates from swftable. But
while using this I am getting error
IG: [GetCelProperty] : Unable to cast object of type 'System.Int16' to type 'System.String'.
The code which i am using is
xCoordinate = SwfWindow("Window").SwfTable("WindowsGrid").GetCellProperty(1,1,"x")
Need this at very high priority. Thanks in advance.
Ratish,
I see that Mike from the TestAdvantage engineering team is helping you with this issue here:
http://community.infragistics.com/forums/p/34082/347599.aspx
Thanks,Francis
can someone help me on this?
Thanks
Rathish
Hi,
Passing a String value for row, column and propertyName parameter works. But the propertyName "x" is not working. I used "Value", "Height " and '"Width" property Name and they returned the values.
GetCellProperty("1","1", "Value")
Could someone help me to find the "x" parameter value or its equivalent.
Hi shafiqnadaf ,
Just checking back...did Michael's answer resolve the issue?
The fix he describes would not address this specific issue. It may still apply, but wouldn't be the cause for the exception that you received. The unable to cast int16 to string, basically means the parameter that you passed in was an integer and it was expecting a string. So for the GetCellProperty(1,1, "x") try
GetCellProperty("1","1", "x")