title: How to handle dropdown of type div instead of select in selenium/python
body: <p>I'm trying to make my bot to click on a drop down menu, select option A and refresh the page. The problem I'm having is that I can't use Select as I get error message saying that it can't use select on . Here is the inspection of the drop down in question. How do I make it to select option A?</p>
  
  <pre><code>&lt;div class="Select-value"&gt;&lt;span class="Select-value-label" role="option" aria-selected="true" 
  id="react-select-2--value-item"&gt;CrazyFortune&lt;/span&gt;&lt;/div&gt;
  </code></pre>
  
  <p>I can't share the website as it contains sensitive info but here is my code:</p>
  
  <pre><code>import pandas as pd
  from selenium import webdriver
  from selenium.webdriver.chrome.options import Options
  from selenium.webdriver.support.ui import Select
  import openpyxl
  import xlsxwriter
  
  #my private module with sensitive info
  import pwx_module as pwx
  
  #delay libraries
  from selenium.webdriver.common.by import By
  from selenium.webdriver.support.ui import WebDriverWait
  from selenium.webdriver.support import expected_conditions as ec
  
  #imports
  driver_path = r'C:\Users\name\chromedriver.exe'
  outcome = openpyxl.load_workbook(r'C:\Users\name\outcome.xlsx')
  driver = webdriver.Chrome(driver_path)   
  driver.get('link_hidden')
  
  # waiting for login table to load
  try:
      element = WebDriverWait(driver,10).until(
      ec.presence_of_element_located((By.XPATH,'//*[@id="email"]'))
      )
  except:
      driver.quit()
  
  #entering sensitive info
  driver.find_element_by_id("email").send_keys(pwx.em)                        
  driver.find_element_by_id("password").send_keys(pwx.pw)                               
  driver.find_element_by_xpath('//* 
  [@id="appContainer"]/div/form/button').click()      
  
  # waiting for page to load
  try:
      element = WebDriverWait(driver,10).until(
      ec.presence_of_element_located((By.XPATH,'//* [@id="testing"]/section/section[1]/div[1]/header/div/div/div[1]/div[2]/div''))
      )
  except:
      driver.quit()
  
  
  # THIS IS WHERE THE PROBLEM IS!!! - code above works fine
  drp = select(driver.find_element_by_xpath('//* 
  [@id="testing"]/section/section[1]/div[1]/header/div/div/div[1]/div[2]/div'))
  drp.select_by_visible_info('A')
  driver.refresh()
  
  # writing info into excel file, code below works fine
  cell = outcome['import']    
  withdrawal_cell = 'B19'     
  cell[withdrawal_cell].value = w.text
  
  driver.quit()
  
  outcome.save(r'C:\Users\giuse\Desktop\Back office bot\outcome.xlsx')
  </code></pre>