How to find duplicate values are present in drop down list box
1,636 views
Skip to first unread message
Zakaulla Cma
unread,
Sep 3, 2015, 11:02:58 AM9/3/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to webdriver
How to find duplicate values are present in drop down list box
darrell
unread,
Sep 10, 2015, 12:17:16 PM9/10/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to webdriver
Use Selenium to find the list (driver.findElements() method). Iterate over the List<WebElement> and store the values in a List<String>. Then you want to sort the List and see if there are duplicates in it. Finding duplicates in a List<String> is really a Java problem. You can google for a solution to this problem without even considering that the list came from Selenium.