Forum Discussion

JennyH11's avatar
Frequent Contributor
7 years ago

Persistent Object Recognition Hints where page Objects are not found

Hi   I have been using TestComplete for a couple of months now and have inherited many tests which need attention in one way or another. I need your help!   The question I have at the moment is r...
  • tristaanogre's avatar
    7 years ago

    The example you've given seems to be a simple problem with timing.  The page you are intending to work with is not up and available yet when you attempt to perform the next step which, based on your screenshot is a check point on the FlightLogDetails page.  The FlightLog page is what is available at the time so that's why you get the hint. 


    Most likely, after your click on linkLnbviewdetails163463, your Delay of 200 milliseconds isn't long enough.  I would actually recommend not using a hardcoded delay like that.  Instead, after that click, you need to insert an onscreen action where you call the Wait method on pageFlightLogDetails.  (see This method will tell TestComplete to wait until that page is fully loaded in your browser before proceeding with your test.  This is probably an intermittant problem... sometimes it works fine, sometimes it doesn't, which is the nature of timing issues of this sort.


    As a best practice and rule of thumb, if you perform an action on a page that either will cause the current page to reload or navigate to a new page, you should call that Wait method against the destination page.  This will wait up to the maximum wait time on your project (Tools -> Current Project Properties -> Playback) for the page to load.