Forum Discussion

mazhar555's avatar
mazhar555
Contributor
14 years ago

How to check Item in Select/Dropdown List

Hi,



Is there any way to check an item in Drop Down List? I just want to verify item existence in Dropdown List.



Regards,

1 Reply

  • karkadil's avatar
    karkadil
    Valued Contributor
    The solution depends on the type of your application under test and control type.



    In general, you can iterate through all items and check if one of them is equal to the value you want to check.

    Also some dropdown controls have a property with all items listed there and separated by some character (e.g. ";")