Ask a Question

check an item exists in the dropdown list

SOLVED
grace_ca
Occasional Contributor

check an item exists in the dropdown list

Our application has a combobox that has a list of items. 

The applicate works like this: If the item has already added it won't show in the dropdown list.

I need to check if the item exists before clicking. 

 How to do that?  The only useful attribute for the combobox is childElementCount.

 

Thanks!

2 REPLIES 2
grace_ca
Occasional Contributor

I think I found solution by using the itemcount to loop through and check the combobox object's "options" tag. 

 

 

tphillips
Frequent Contributor

That's what we usually do, get the itemcount and get each item in a for loop.


--------------------
Senior SQA Automation Engineer
cancel
Showing results for 
Search instead for 
Did you mean: