07-16-2012, 12:36 PM
Hi Jow,
Please attach the snap shot of the screen you are working on.
According to me .....as you are using Weblist("toMonth") and as the name suggest it must take only the month value not the complete date.
Similarly, Weblist("toDay") will take only the day value and not the entire date.
For this.... store the day and month part in two different variables and then use them.
For eg
Please attach the snap shot of the screen you are working on.
According to me .....as you are using Weblist("toMonth") and as the name suggest it must take only the month value not the complete date.
Similarly, Weblist("toDay") will take only the day value and not the entire date.
For this.... store the day and month part in two different variables and then use them.
For eg
Code:
GetMonth = DatePart("m", departdate)
Browser("Welcome: Mercury Tours").Page("Find a Flight: Mercury").WebList("toMonth").Select GetMonth