title: How to select option from invisible drop-down element in Selenium WebDriver using Java
body: <p>Please anyone help me how to find the invisible  element in Selenium WebDriver. I want to select an option from the drop down and my target is to find element is through ID.</p>
  
  <p>But in the HTML tag the element is not visible to select the option. I verified so many question in that they are mentioning use JavascriptExceutor.</p>
  
  <p>Can any one please help me the java script for the html tag:</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>