Error -2147467259 in UFT 14.03, IE10
After using our own framework in UFT 12.54 in IE 7 for a while, we are now migrating to UFT14.03 in IE 10. But I'm encountering this error that I could only manage using error handling. But i'm still curious as to why. The error did not show in previous framework (UFT 12.54, IE 7). Here is the code:
Set oCell = oCells(i).Object
rowNum = oCell.parentNode.rowIndex + 1
I get General Run error at the above 2nd line: General run error. Function file: functions.qfl Line (4725): " rowNum = oCell.parentNode.rowIndex + 1".
Err.number is -2147467259, and it is intermittent. The code is inside a loop, and it errors out at different values of i.
The issue is that the setting of oCell, for some reason, has not taken effect. The Local variables show that oCell is of type Object, but all the properties for the object are like null. Trying to print to console some of the properties gives me nothing.
If I execute the line Set oCell = oCells(i).Object again, then oCell is correct, and everything keeps working fine. Object type is HTMLTableCell, which is the correct set.
Any suggestions will be appreciated.
Update: The error handling I implemented is causing other issues, so I rolled it back, and now I'm back to square one as to what is causing this error and how to fix it.
Microsoft has stopped supporting old IE versions.
Thus UFT has the same support aligned with IE and only IE11 is supported. Please kindly consider upgrading IE to continue your testing.
The error itself, however, is irrelevant to UFT. It's like a DB issue.