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.
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.
Can any one please help me the java script for the html tag:
<select id="periodId" name="period" style="display: none;">
<option value="l4w">Last 4 Weeks</option>
<option value="l52w">Last 52 Weeks</option>
<option value="daterange">Date Range</option>
<option value="weekrange">Week Range</option>
<option selected="" value="monthrange">Month Range</option>
<option value="yeartodate">Year To Date</option>
</select>