title: how to select hidden value from dropdown using webdriver, selenium and python
body: <p>I am totally new to this concept, so please help me.</p>
  
  <p>I want to select a value (D) from dd and click it.</p>
  
  <pre><code>&lt;select id="projectTypeNameDropdown"
                  class="singleSelectProjectTypeDropdown chzn-select"&gt;
                  &lt;option value=""&gt;--Select a ProjectType--&lt;/option&gt;
                  &lt;option value="A"&gt;A&lt;/option&gt;
                  &lt;option value="B"&gt;B&lt;/option&gt;
                  &lt;option value="C"&gt;C&lt;/option&gt;
                  &lt;option value="D"&gt;D&lt;/option&gt;
  
   &lt;/select&gt;
  </code></pre>
  
  <p>With the below code, I am getting index and value both:</p>
  
  <pre><code>countries=Select(driver.find_element_by_id("projectTypeNameDropdown")).options
  for index, value in enumerate(countries):
          print(value)
  </code></pre>
  
  <p>and if I use the below code:</p>
  
  <pre><code>driver.find_element_by_xpath("//select[@id='projectTypeNameDropdown']/option[text()='D']").click()
  </code></pre>
  
  <p>I get an error that says:</p>
  
  <pre><code>selenium.common.exceptions.ElementNotVisibleException: Message: element not visible: Element is not currently visible and may not be manipulated
  (Session info: chrome=57.0.2987.133)
  (Driver info: chromedriver=2.29.461591 (62ebf098771772160f391d75e589dc567915b233),platform=Windows NT 6.1.7601 SP1 x86_64)
  </code></pre>
  
  <p>please help me to select the hidden value and click it.</p>
  
  <p>Thanks.</p>