05-14-2008, 11:59 PM
Hi all,
Here is my code:
In my code i've put wait statement cuz when you type url and when page open there is one popup window or advertisement comes and it stays there for sometime and when that goes or close by itself qtp should be able to click the link but somehow qtp doesn't when i recorded i did the same.
I've also tried to use recovery scenario.And added to the test but still i'm getting error.Can anyone help how to use recovery scenario or is there any other solution for this problem.
I've attached the screen shot.
Thanks,
Learner
Here is my code:
Code:
SystemUtil.Run "C:\Program Files\Internet Explorer\IEXPLORE.EXE","","C:\Documents and Settings\Sysadmin","open"
Browser("Browser").Page("Page").Sync
Browser("Browser").Navigate "http://www.timesofindia.com/"
wait(18)
Browser("Browser").Page("The Times of India: No").Link("IPL: Mumbai thrash Chennai").Click
Browser("Mumbai Indians thrash").Page("Mumbai Indians thrash").Sync
Browser("Mumbai Indians thrash").Close
In my code i've put wait statement cuz when you type url and when page open there is one popup window or advertisement comes and it stays there for sometime and when that goes or close by itself qtp should be able to click the link but somehow qtp doesn't when i recorded i did the same.
I've also tried to use recovery scenario.And added to the test but still i'm getting error.Can anyone help how to use recovery scenario or is there any other solution for this problem.
I've attached the screen shot.
Thanks,
Learner