title: Testing drop down list values in Selenium - Console does not print mis-match
body: <p>I'm testing drop down list values in Selenium. I am working in Java.</p>
  
  <p>A drop down list has 40 values. I want my code to get all the values in the DDL and compare it to the ones they should be.</p>
  
  <p>My code as it stands will fail if the values in the DDL do not match the hardcoded values I expect. It prints a message which says values do not match. However it doesnt tell me which value has not matched.</p>
  
  <p>What is the best way to achieve this?</p>
  
  <p>I am using selenium.getSelectOptions to get the DDL values. Then using if statement to check if values are same, if not then fail. But it doesnt tell me which value is not the same.</p>