TestComplete incorrectly identifying page loads
So I've got some automate tests that loop through code and visit the same pages over and over. Each of the pages is mapped in the NameMapping.
Some of these pages take awhile to load, so I wanted a dynamic way to wait for the pages rather than hard coded delay. I discovered the 'WaitAliasChild' method to have testcomplete wait till the page is actually present. I've also tried page.waits, and waiting for elements to exist on the page (WaitProperty(exists,'true) etc). Problem is, it seems like once a page is loaded once, TestComplete always things it's loaded.
For example,
I go into the name mapping for our login page, click Highlight, login page is highlighted. I log into the app, and try to highlight the login page, and it highlights the whole page again. It's like it 'remembers' it was on the page, so it still thinks the page is there.
Is there any way to get around this to avoid TestComplete 'remembering' what web pages have been loaded?
Also, page.RefreshMappingInfo() might help...