Forum Discussion

svarog99's avatar
svarog99
New Contributor
11 years ago

Intial run passes, object not recognized in subsequent runs

I was not able to find this question being asked previously -- I apologize in advance if I missed it.



I have a script which passes on the initial run and successfully closes out the browser window at the end (IE). When I attempt to run it a second time, however, it is unable to recognize an object in the first function (Windows Security login dialog - unchanged from the first run).



If I close TestComplete and restart it however, the object is recognized and the test completes successfully.



I am not sure why closing and reopening TestComplete would make a difference. I have a theory that it might be because of a global variable I'm using, but have not been able to figure out which one or why. 



Does anyone have any tips on how to troubleshoot further, or ideas of any other factors/settings that might be involved?



Thanks in advance.

1 Reply

  • Marsha_R's avatar
    Marsha_R
    Icon for Champion Level 3 rankChampion Level 3
    I would use Object Spy and look at that object when it's in the state for the first run and then again for the second run.  Perhaps some property is changing underneath and you can't see it.