check an item exists in the dropdown list
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2021
11:43 AM
01-14-2021
11:43 AM
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!
Solved! Go to Solution.
2 REPLIES 2
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2021
12:22 PM
01-14-2021
12:22 PM
I think I found solution by using the itemcount to loop through and check the combobox object's "options" tag.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2021
01:33 PM
01-14-2021
01:33 PM
That's what we usually do, get the itemcount and get each item in a for loop.
--------------------
Senior SQA Automation Engineer
