Forum Discussion

waffleman's avatar
14 years ago

Combo boxes...

I am automating an internal product here at the office.  The (web app) is rife with Combo boxes.  I am curious as to how you are all retrieving an item in a combo box.



Currently, I use the ["ClickItem"]( ) function, but I noticed that there is a ["SelectedIndex"]( ) function.  I presume this is a way to specify an item in the Combo box by its position.  What other methods are you all using?  I am new-ish to Test Complete, but have been developing in C# for over 7 years now, so don't think you need to hold your 'technical punches' on me.



Thanks in advance!



Brian

1 Reply

  • Hi Brian,



    For example, I recommend using the mentioned ClickItem method, because, besides the item name, you can pass its index as a parameter. More rarely, I recommend other approaches that are described in the "Selecting Combo Box Items" help topic.



    Possibly, other community members will offer other (maybe "exotic") ways to work with combo boxes.