Hi,
I would like to share my code snippet inspired by this forum post . Apparently this is applied only for ASP.NET type of RadComboBox and not ASP.NET Ajax type of RadComboBox
Regards,
hadi teo
I would like to share my code snippet inspired by this forum post . Apparently this is applied only for ASP.NET type of RadComboBox and not ASP.NET Ajax type of RadComboBox
| // currently my RadComboBox client-id name is ddlTopic. | |
| // please substitute your proper combobox name appended by "_Arrow" | |
| Link radComboBoxDropDownImage = ie.Link(Find.ById("ddlTopic_Arrow")); | |
| radComboBoxDropDownImage.Click(); | |
| // my RadComboBox client-id name is ddlTopic | |
| // please substitute with your proper combobox name appended by "_DropDown" | |
| Div divTopic = ie.Div(Find.ById("ddlTopic_DropDown")); | |
| ElementCollection elColl = divTopic.ElementsWithTag("li"); | |
| // here i would like to select the 4th option inside the combo-box | |
| // the dropdownlist option index is started with 0 | |
| elColl[3].FireEvent("onmouseover"); | |
| elColl[3].Click(); |
Regards,
hadi teo