Forum Discussion
3 Replies
- Marsha_R
Champion Level 3
In the Advanced view of Object Spy, you should be able to find a row for Items. That's the list of things in the combo box and you can pick them by number and maybe by name.
- Ryan_MoranValued Contributor
- RavikSuper Contributor
Try below code - I used it for Infragistics valuelistdropdown, this may help you...
intDropDownItemCount = objDropdownName.Items.Count
IF intDropDownItemCount > 0 Then
For i = 0 to intDropDownItemCount-1
objDropdownName.set_SelectedIndex(i)
strDropDownValue = objDropdownName.Text
IF expectedValue = strDropDownValueThen
log.message ("Pass")
objDropdownName.click
Exit for
End IF
Next
Else
log.message ("Fail")
End IF