title: Python Selenium selecting option using Select (element not visible?)
body: <p>I've tried to use a few approaches mentioned in similar questions with no luck. In the HTML source code there is clearly 'value' and 'text' properties, but I cannot seem to access those when I use selenium.webdriver to access these?</p>
  
  <p>Note selection lead to change in data on the page...</p>
  
  <hr>
  
  <p><strong>Edit2:</strong></p>
  
  <p>Guy has pointed out below that the actual drop down maybe a  element instead of the  element. However using el.click() simply flickers and does not open the drop-down.</p>
  
  <hr>
  
  <p><strong>EDIT1:</strong>
  The  and  elements can now be identified but I am unable to make an selection. I believe the page is also in javascript and hence I'm unsure if this affects methods used.</p>
  
  <hr>
  
  <p><strong>Original post:</strong></p>
  
  <p>Webpage:
  <a href="https://www.racv.com.au/on-the-road/driving-maintenance/fuel-prices.html" rel="nofollow noreferrer">https://www.racv.com.au/on-the-road/driving-maintenance/fuel-prices.html</a></p>
  
  <p>HTML code of selection, for visibility, some options omitted:</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;select name="filter-select-6" id="filter-select-6" class="js-dropdown js-select-map js-filter-select" data-filter="#filter-list-60 .js-tab-item" data-url="/bin/racv/fuelprice" style="display: none;" data-parsley-id="3"&gt;                            
      &lt;option value="11" data-index="0"&gt;LRP&lt;/option&gt;
      &lt;option value="2" selected="true" data-index="0"&gt;Unleaded&lt;/option&gt;
      &lt;option value="3" data-index="0"&gt;Diesel&lt;/option&gt;
      &lt;option value="8" data-index="0"&gt;Premium Unleaded 98&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>I believe I can select the Select element without problem:</p>
  
  <pre class="lang-py prettyprint-override"><code>from selenium import webdriver
  from selenium.webdriver.support.ui import Select
  
  url = 'https://www.racv.com.au/on-the-road/driving-maintenance/fuel-prices.html'
  driver = webdriver.Chrome()
  driver.get(url)
  driver.implicitly_wait(20)
  
  fuel_select = Select(driver.find_element_by_id('filter-select-6'))
  </code></pre>
  
  <p>When I print the options, I get:</p>
  
  <pre class="lang-py prettyprint-override"><code>for fuel_option in fuel_select.options:
      print(fuel_option)
  
  &lt;selenium.webdriver.remote.webelement.WebElement (session="9a10aa750fa59f4412e0bea4d7aae990", element="0.5927271524692566-2")&gt;
  &lt;selenium.webdriver.remote.webelement.WebElement (session="9a10aa750fa59f4412e0bea4d7aae990", element="0.5927271524692566-3")&gt;
  &lt;selenium.webdriver.remote.webelement.WebElement (session="9a10aa750fa59f4412e0bea4d7aae990", element="0.5927271524692566-8")&gt;
  &lt;selenium.webdriver.remote.webelement.WebElement (session="9a10aa750fa59f4412e0bea4d7aae990", element="0.5927271524692566-11")&gt;
  </code></pre>
  
  <p>Using select():</p>
  
  <pre class="lang-py prettyprint-override"><code>for fuel_option in fuel_select.find_elements_by_tag_name('option'):
      if fuel_option.text == "Diesel":
          fuel_option.select()
  </code></pre>
  
  <p>Error:</p>
  
  <pre class="lang-py prettyprint-override"><code>Traceback (most recent call last):
    File "C:/file.py", line 18, in &lt;module&gt;
      fuel_option.Select()
  AttributeError: 'WebElement' object has no attribute 'select'
  </code></pre>
  
  <p>Using click() or using any of the select_by_xxx():</p>
  
  <pre class="lang-py prettyprint-override"><code>for fuel_option in fuel_select.find_elements_by_tag_name('option'):
      if fuel_option.text == "Diesel":
          fuel_option.click()
  
  #or using select_by_xxx
  fuel_select.select_by_value('8')
  </code></pre>
  
  <p>Error:</p>
  
  <pre class="lang-py prettyprint-override"><code>selenium.common.exceptions.ElementNotVisibleException: Message: element not interactable: Element is not currently visible and may not be manipulated
    (Session info: chrome=74.0.3729.169)
    (Driver info: chromedriver=74.0.3729.6 (255758eccf3d244491b8a1317aa76e1ce10d57e9-refs/branch-heads/3729@{#29}),platform=Windows NT 10.0.17134 x86_64)
  </code></pre>