04-01-2011, 08:15 AM
Lets say you are storing date as 24 April 2010 on the datatable. On your script you can split this up as,
For the year and the month the selection is going to involve some programming. Here is the logic you may want to try,
1. Using the GetRoproperty retrieve the current month and year.
2. Based on the input you would want to supply you will have to click the > links.
3. Confirm using the GetRoproperty that the desired month is set.
4. Then select the day.
5. Then simply click on OK.
So far, so good?
Code:
day = Split("24 Apr 2010")(0)
Month = Split("24 Apr 2010")(1)
Year = Split("24 Apr 2010")(2)
I am unsure which of your link clicks the day, but you can try the below,
Browser("Browser").Page("Event Details").Link("miclass:= link","value:="&day).Submit
For the year and the month the selection is going to involve some programming. Here is the logic you may want to try,
1. Using the GetRoproperty retrieve the current month and year.
2. Based on the input you would want to supply you will have to click the > links.
3. Confirm using the GetRoproperty that the desired month is set.
4. Then select the day.
5. Then simply click on OK.
So far, so good?
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.
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.