title: Python selenium select option from dropdown
body: <p>I am trying to select an option from  <strong><a href="http://www.lacoteargus.ma/cote-maroc/recherche/" rel="nofollow noreferrer">http://www.lacoteargus.ma/cote-maroc/recherche/</a></strong>
  <br/>But I am getting this error:<br/><code>selenium.common.exceptions.ElementNotVisibleException: Message: element not interactable: Element is not currently visible and may not be manipulated</code>  <br/>
  in this line <br/><code>Brands.select_by_visible_text('BMW')</code></p>
  
  <p><br/>
  Here is my script: <br/></p>
  
  <pre><code>from selenium.webdriver.support.ui import Select
  from selenium.webdriver.chrome.options import Options
  import os
  import time
  
  Email = '***************'
  Pass = '******'
  LoginUrl = 'http://www.lacoteargus.ma/'
  
  chrome_options = Options()
  chromedriver_path = os.path.join(os.getcwd(), "chromedriver")
  driver = webdriver.Chrome(executable_path=chromedriver_path, options=chrome_options)
  
  driver.get(LoginUrl)
  driver.find_element_by_name('strLogin').send_keys(Email)
  driver.find_element_by_name('strPwd').send_keys(Pass)
  driver.find_element_by_id('validation').click()
  time.sleep(10)
  driver.find_element_by_class_name('caret').click()
  time.sleep(1)
  
  Brands = Select(driver.find_element_by_id('marque'))
  Brands.select_by_visible_text('BMW')
  </code></pre>
  
  <p>I have also tried:<br/>
  <code>Brands.select_by_value('1')</code> <br/> and  <br/><code>Brands.select_by_index('1')</code><br/><br/> None of them are working.</p>