08-17-2012, 11:04 AM
I am new to QTP and i am working on weblist which contains multiple values.For the first iteration there will be 3 items in the dropdown and on subsequent iteration there will be only 2 items in the dropdown.I have used the below code to access the values from the dropdown.But i am not able to access the second value(item) from dropdown
Kindly Help
Thanks in advance
Code:
Cnt=Browser("Browser").Page("page").WebList("weblist").GetROProperty("items count")
For i=1 to cnt step 1
Browser("Browser").Page("page").WebList("weblist").select (i)
Browser("Browser").Page("page").WebButton("button").Click
Next
Kindly Help
Thanks in advance