Forum Discussion

ztilleto_1's avatar
ztilleto_1
Contributor
13 years ago

IE - Objects not refreshed correctly it seems.

Running TC 8.7 on a IE client accessing a site.



The site structure was updated and I needed to redo some structure changes in my script to get the correct objects.



I've got an Event on script start, this event does some child object locating for me to handled the different pages on the site. One of these seem to return the wrong data when it is called. Pausing the script and then opening an object spy at the same time, gives to different data collections in the object, even though it is the same object.

After 10-15 min pauseing the watchlist might update correctly and show the data, even the script have been paused ever since, only update to the watchlist.



I hope that I'm just missing something that might cause this, however I really would like to figure out why this happens.
  • AlexeyK's avatar
    AlexeyK
    SmartBear Alumni (Retired)

    Mike,


    TestComplete seems to be unable to update the internal structure of the tested objects for some reason.

    I'd suggest calling the Page(...).Refresh method at the beginning of the event handler you use. This will command TestComplete to update the internal hierarchy.