title: How to compare the drop down options is matching with the UI options in Selenium WebDriver?
body: <ul>
  <li><p>Currently working on <strong>Selenium WebDriver</strong> and using <strong>Java</strong> for scripting.</p></li>
  <li><p>I have stored all drop down values of db in property file and want to compare same values whether they are in UI as in DropDown options.</p></li>
  <li><p>The <strong>visualization.txt</strong> which is in C: directory contains the below options
  <strong>visualizationId=Day,Week,Month,Quarter,Semester,Year,RD Tech Group,ICC,Center,Software Pack,Product,Project,Customer PRs,Severity ,Priority</strong>.</p></li>
  </ul>
  
  <p>So How can I compare both values are matching. I need to get all the drop down options from property file i.e visualization.txt then need to check in the drop drop down in UI.</p>
  
  <p><img src="https://i.stack.imgur.com/YZ2vF.jpg" alt="enter image description here"></p>
  
  <pre><code>&lt;select id="visualizationId" style="width: 120px; display: none;" name="visualization"&gt;
  &lt;option value="day"&gt;Day&lt;/option&gt;
  &lt;option value="week"&gt;Week&lt;/option&gt;
  &lt;option selected="" value="month"&gt;Month&lt;/option&gt;
  &lt;option value="quarter"&gt;Quarter&lt;/option&gt;
  &lt;option value="semester"&gt;Semester&lt;/option&gt;
  &lt;option value="year"&gt;Year&lt;/option&gt;
  &lt;option value="techgroup"&gt;RD Tech Group&lt;/option&gt;
  &lt;option value="icc"&gt;ICC&lt;/option&gt;
  &lt;option value="center"&gt;Center&lt;/option&gt;
  &lt;option value="softwarepack"&gt;Software Pack&lt;/option&gt;
  &lt;option value="product"&gt;Product&lt;/option&gt;
  &lt;option value="project"&gt;Project&lt;/option&gt;
  &lt;option value="customer"&gt;Customer PRs&lt;/option&gt;
  &lt;option value="severity"&gt;Severity&lt;/option&gt;
  &lt;option value="priority"&gt;Priority&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>