Hi,
I'm having trouble selecting one of the options from a dropdown list, you have the ability to select several options at the same time.
the element is :
I have tried:
With IE.document.getElementById("plc_RegionDistrictCampus1_campusList")
.Options(0).Selected = True '1st option
.Options(3).Selected = True '3rd option
'etc.
End With
But I'm getting an Object Required error. How can I do it to select the 3rd option?
I'm having trouble selecting one of the options from a dropdown list, you have the ability to select several options at the same time.
the element is :
<select name="ctl00$plc$RegionDistrictCampus1$campusList" onchange="javascript:setTimeout('__doPostBack(\'ctl00$plc$RegionDistrictCampus1$campusList\',\'\')', 0)" id="plc_RegionDistrictCampus1_campusList" style="height:20px;width:255px;"> |
I have tried:
With IE.document.getElementById("plc_RegionDistrictCampus1_campusList")
.Options(0).Selected = True '1st option
.Options(3).Selected = True '3rd option
'etc.
End With
But I'm getting an Object Required error. How can I do it to select the 3rd option?