cancel
Showing results for 
Search instead for 
Did you mean: 

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!

1 ACCEPTED SOLUTION

Accepted Solutions
grace_ca
Occasional Contributor

Re: check an item exists in the dropdown list

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

 

 

View solution in original post

2 REPLIES 2
grace_ca
Occasional Contributor

Re: check an item exists in the dropdown list

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

 

 

View solution in original post

tphillips
Community Leader

Re: check an item exists in the dropdown list

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


--------------------
QA Systems Architect
New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors