| || |
QTP: Obj variable is dereferenced after AUT screen is refreshed
I am facing an issue where After being AUT refreshed, object variable is not able to fetch the data from web table.
1. set Otbl=Browser("Browser").Page("Page").WebTable("tab le")
2. Otbl.highlight 'working fine
' Performing some actions on child webedit of above table
'Clicking on one button which refresh whole screen
3. Otbl.highlight 'Not working fine
4. Browser("Browser").Page("Page").WebTable("table") 'working fine
1. I found that if i reassign it after refreshing screen (After step 2) then it works fine.
2. If i replace step 3 with below then also working fine:
I have put first line in a function library and then invoke AUT steps in Action script, but it gives me same problem.
Kindly let me know what i am missing!
It would be great help!!!!
Thanks and regards,