title: How can I get the drop down option from the Property file- Selenium WebDriver?
body: <ul>
  <li>Currently working on <strong>Selenium WebDriver</strong> and using <strong>Java</strong>. The Reports generating in the <strong>TestNG</strong> frame work. </li>
  <li>Currently writing script for a web application. It contains many drop downs and each drop down contain many options.</li>
  <li>I have the Property file (In the form of Login.txt file). In that i have stored my user id password and url then will get String <code>uid=p.getProperty("loginUsername");</code> like this.</li>
  <li>The scenario is in the same way it need to find the element through ID of the drop down then it need to get option from the text file to select in the drop down.</li>
  <li>Please suggest me is there any possibility to work like this. </li>
  </ul>
  
  <p>The HTML tag as follows:</p>
  
  <pre><code>&lt;select id="periodId" name="period" style="display: none;"&gt;
  &lt;option value="l4w"&gt;Last 4 Weeks&lt;/option&gt;
  &lt;option value="l52w"&gt;Last 52 Weeks&lt;/option&gt;
  &lt;option value="daterange"&gt;Date Range&lt;/option&gt;
  &lt;option value="weekrange"&gt;Week Range&lt;/option&gt;
  &lt;option selected="" value="monthrange"&gt;Month Range&lt;/option&gt;
  &lt;option value="yeartodate"&gt;Year To Date&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>How can i give these values in the text file as well as selenium webdriver code.</p>