06-09-2010, 09:58 AM
(This post was last modified: 06-09-2010, 10:02 AM by vijayendra.shukla.)
Hi,
You can refer the items using index property to fetch from a list.
From what you have given, I understand that hours and minutes drop down are separte and will always present values from 0-12/24 and 0-60 respectively.
E.g.
Note - Indexing starts from 0 so the above line will fetch the 4th value from the drop down list. But if the values in the drop down change then irrespective of the value you want, it will always give you the value in the 4th position of the drop down.
I hope this helps.
You can refer the items using index property to fetch from a list.
From what you have given, I understand that hours and minutes drop down are separte and will always present values from 0-12/24 and 0-60 respectively.
E.g.
Code:
Browser("Calendar").Page("Calendar").WebList("Hour").Select "#3"
Note - Indexing starts from 0 so the above line will fetch the 4th value from the drop down list. But if the values in the drop down change then irrespective of the value you want, it will always give you the value in the 4th position of the drop down.
I hope this helps.