title: Error when getting options of Select element in Python Selenium
body: <p>I am trying to list the possible options in this Select element.</p>
  
  <pre><code>&lt;select id="sl_coursePage" onchange="document.frm.submit();" name="sl_coursePage"&gt;
      &lt;option selected="selected" value="0"&gt;&lt;/option&gt;
      &lt;option value="1"&gt;&lt;/option&gt;
      &lt;option value="2"&gt;&lt;/option&gt;
      &lt;option value="3"&gt;&lt;/option&gt;
      &lt;option value="4"&gt;&lt;/option&gt;
      &lt;option value="5"&gt;&lt;/option&gt;
      &lt;option value="6"&gt;&lt;/option&gt;
      &lt;option value="7"&gt;&lt;/option&gt;
      &lt;option value="8"&gt;&lt;/option&gt;
      &lt;option value="9"&gt;&lt;/option&gt;
      &lt;option value="10"&gt;&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>I can find the element itself fine with <code>elem = driver.get_element_by_name('sl_coursePage')</code>, but then when I tried to list the options by using <code>elem.get_elements_by_xpath('.//*')</code> or <code>elem.get_elements_by_tag_name('option')</code>, it gives me empty lists. </p>
  
  <p>So then I tried to use <code>Select</code> from <code>selenium.webdriver.support.ui</code> and get the list by the following code:</p>
  
  <pre><code>elem = driver.get_element_by_name('sl_coursePage')
  select = Select(elem)
  list = select.options
  </code></pre>
  
  <p>However, when I try this, it raises this error:</p>
  
  <pre><code>selenium.common.exceptions.UnexpectedTagNameException: Message: Select only works on &lt;select&gt; elements, not on &lt;input&gt;
  </code></pre>
  
  <p>I don't understand how this is not a Select element when its tags say "select". If anyone can get any of these methods to work or present a functioning alternative method, I would be extremely grateful. Thanks in advance.</p>