title: AttributeError: 'Select' object has no attribute 'get_attribute' error using select_by_index() to select an option from dropdown using Selenium Python
body: <p>I am a python newbie having an issue scraping the the text from a drop down table</p>
  
  <p>here is where the issue is:</p>
  
  <pre><code>from selenium import webdriver
  from time import sleep
  from selenium.webdriver.support.ui import Select
  
  driver = webdriver.Chrome()
  driver.get("https://www.ehail.ca/quotes/?1590984761655")
  
  desired_data =
  Select(driver.find_element_by_xpath("/html/body/div[1]/div[2]/form[2]/table[1]/tbody/tr/td/table/tbody[1]/tr[2]/td[10]/select"))
  
  desired_data.select_by_index(1)
  
  print(desired_data.text))
  </code></pre>
  
  <p>and get the resulting error:</p>
  
  <pre><code>AttributeError: 'Select' object has no attribute 'get_attribute' 
  
  </code></pre>
  
  <p>I have also tried <code>print(desired_data.text)</code> but had no luck there.</p>
  
  <p>Can I do this with selenium or will I need another library like beautiful soup?</p>
  
  <p>Thank you for reading</p>
  
  <p>edit1: I have filled in the required fields and still get same error. I am able to select the element but when try to print I get <code>&lt;selenium.webdriver.support.select.Select object at 0x087810B8&gt;</code></p>