07-16-2012, 07:32 AM
Hi,
I am a beginner in QTP and I have this error when I run my script. Please help.
Thanks in advance.
I am a beginner in QTP and I have this error when I run my script. Please help.
Code:
departdate = DateAdd("m",1,"13-July-12")
Msgbox departdate
retdate = DateAdd("d", 5, departdate)
msgbox retdate
Browser("Welcome: Mercury Tours").Page("Find a Flight: Mercury").WebList("toMonth").Select departdate 'refer to DateAdd
Browser("Welcome: Mercury Tours").Page("Find a Flight: Mercury").WebList("toDay").Select retdate
Thanks in advance.