Forum Discussion

sudhir_optima's avatar
sudhir_optima
Contributor
14 years ago

How to select items from combo box

I have recorded both Keyword test and Script test for combo box items.

But it show only few method to select like Exist, RefreshMapingInfo,WaitAliasChild,WaitProperty,ClickItem

Script test even doe not show ClickItem method.

How i can get total Items present, Select item by ID, ref or name ?

1 Reply

  • Hi Sudhir,



    How i can get total Items present, Select item by ID, ref or name ?
    To get the total number of combo box items, use the wItemCount property.

    To select an item by text or index, use the ClickItem method.



    But it show only few method to select like Exist, RefreshMapingInfo,WaitAliasChild,WaitProperty,ClickItem
    There're two ways to view the complete list of test object methods and properties when editing tests:

    * Have the tested application running and ensure that the target objects are currently available in it.

    * Re-record the test with the Tools > Current Project Properties > Name Mapping > Store Code Completion information option set to Full. See Saving Information on Methods and Properties of Mapped Objects for details.



    I'd recommend the first approach, because the latter may result in a large size of your Name Mapping ("object repository") file.