This is a migrated thread and some comments may be shown as answers.

How to use ASP.NET Ajax RadComboBox with WatiN

0 Answers 19 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Hadi Teo
Top achievements
Rank 1
Hadi Teo asked on 03 May 2009, 09:03 AM
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

  // 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

No answers yet. Maybe you can help?

Tags
ComboBox
Asked by
Hadi Teo
Top achievements
Rank 1
Share this question
or