11-21-2012, 07:04 PM
Try the below one,
Code:
Browser("").Page("").Weblist("customertype").Select Randomnumber(0,1) 'If you are having 2 dropdown value,QTP will select random one from that two value
wait 1
r=browser("").Page("").Weblist("customertype").GetROProperty("value")
if r="wholesaler" Then
steps
elseIf r="retailer"
steps
end if