Posts: 15
Threads: 8
Joined: Apr 2010
Reputation:
0
05-03-2010, 03:15 PM
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.
Posts: 61
Threads: 1
Joined: Jul 2009
Reputation:
0
05-03-2010, 03:19 PM
Hi,
You should wait (ofcourse in code), after clicking the booking link untill the next screen/page is completely loaded.
Posts: 8
Threads: 2
Joined: May 2010
Reputation:
0
05-03-2010, 03:33 PM
Add wait property in the code as :
wait(2)
The seconds depends the time taken by your application to load the page
Posts: 15
Threads: 8
Joined: Apr 2010
Reputation:
0
05-04-2010, 06:49 AM
(This post was last modified: 05-04-2010, 06:59 AM by Bala Preetha33.)
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.
Posts: 8
Threads: 2
Joined: May 2010
Reputation:
0
05-04-2010, 09:55 AM
(This post was last modified: 05-04-2010, 10:03 AM by surekha.kadi.)
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
Posts: 1,003
Threads: 1
Joined: Jul 2009
Reputation:
5
05-04-2010, 10:25 AM
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.
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.