title: Python - Selenium - select an element from a dropdown menu
body: <p>I need to select an element from a dropdown menu.</p>
  
  <p>For example:</p>
  
  <pre><code>    &lt;div class="col-sm-4 col-lg-2"&gt;
         &lt;label for="rangeFilter" class="sr-only"&gt;Date Range&lt;/label&gt;
         &lt;select class="selectpicker" id="rangeFilter" data-none-selected-text="Range" name="range"&gt;
                &lt;option value=""&gt;View by&lt;/option&gt;
                &lt;option value="6month"&gt;6 months&lt;/option&gt;
                &lt;option value="1year"&gt;1 Year&lt;/option&gt;
                &lt;option value="2year"&gt;2 Year&lt;/option&gt;
                &lt;option value="all"&gt;All time&lt;/option&gt;
           &lt;/select&gt;
       &lt;/div&gt;
  </code></pre>
  
  <p>but i have always some kind of error.</p>
  
  <p>My code is so easy:</p>
  
  <pre><code>driver = webdriver.Chrome("D:\Python27\selenium\webdriver\chrome\chromedriver.exe")
  driver.implicitly_wait(5)
  driver.maximize_window()
  driver.get("https://ispspeedindex.netflix.com/country/norway/")
  time.sleep(15)
  select = Select(driver.find_element_by_id('rangeFilter'))
  select.select_by_visible_text('All time')
  </code></pre>
  
  <p>but it don´t work. It appears a message about "element not visible: Element is not currently visible and may not be manipulated"</p>
  
  <pre><code>Traceback (most recent call last):
  File "scraping.py", line 23, in &lt;module&gt;
  select.select_by_visible_text('All time')
  File "D:\Python27\lib\site-packages\selenium\webdriver\support\select.py", line 120, in select_by_visible_text
  ...
  selenium.common.exceptions.ElementNotVisibleException: Message: element not visible: Element is not currently visible and may not be manipulated
  </code></pre>
  
  <p>any idea? i was trying with some fixes from another stackoverflow questions but i didn´t find the way... </p>