Micro Focus QTP (UFT) Forums

Full Version: QTP Recording
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all

I have created a script as click a Booking link, then in the Booking link click confirm button. While I am running the script, QTP do oly to click a Booking link. Cant able to click confirm button in the Booking application.. the result says as Page loding failed, cant identify the object for confirm button.. can any one help me to slove this problem. Thanks in advance.

Regards,
Preetha.
Hi,
You should wait (ofcourse in code), after clicking the booking link untill the next screen/page is completely loaded.
Add wait property in the code as :
wait(2)
The seconds depends the time taken by your application to load the page
Hi

I did using wait(), for first time if i run my script its working.... If i run again it fails to run giving the same error....

Regards,
Preetha.
You can check the load time and according to that you add the seconds in the wait function

It will work .....


Or else you can use
Browser("xyz").Page("xyz").Sync

it will work
Would you mind posting the code you have tried ?

If you are using dictionary to create objects then you may need to use Object.RefreshObject to re-initalize it.