title: Not able to select drop-down option using select : UnexpectedTagNameException selenium : python
body: <p>I apologize if I am doing very basic mistake, i am still new learning webdriver and python.</p>
  
  <p>I am trying to select an option from dropdown using Select Class of python, but i am getting Unexpected TagName exception.
  There is no ID present on the Tag, so i cannot detect it using any other method except class or attribute.</p>
  
  <p>HTML Code :</p>
  
  <pre><code>&lt;div class="select-pixels-container ng-scope"&gt;
      &lt;div class="action group"&gt;
      &lt;table class="org-agency-advertiser"&gt;
      &lt;tbody style="background-color: transparent;"&gt;
          &lt;tr style="background-color: transparent;"&gt;
          &lt;tr&gt;
              &lt;td style="background-color: transparent;"&gt;
                  &lt;select class="mm-select ng-valid localytics-chosen ng-dirty" ng-disabled="disabled('organizations')" ng-options="org.id as org.name for org in logic.organizations | orderBy:'name'" ng-model="logic.organization" chosen="" style="display: none;" data-placeholder="Select an Option"&gt;
                  &lt;div class="chosen-container chosen-container-single" style="width: 175px; background-color: transparent;" title=""&gt;
                      &lt;a class="chosen-single" tabindex="-1" style="background-color: transparent;"&gt;
                          &lt;span style="background-color: transparent;"&gt;Select&lt;/span&gt;
                          &lt;div&gt;
                      &lt;/a&gt;
                      &lt;div class="chosen-drop"&gt;
                          &lt;div class="chosen-search"&gt;
                              &lt;input type="text" autocomplete="off"&gt;
                          &lt;/div&gt;
                          &lt;ul class="chosen-results"&gt;
                              &lt;li class="active-result" style="" data-option-array-index="0"&gt;Select&lt;/li&gt;
                              &lt;li class="active-result" style="" data-option-array-index="1"&gt;1-800 Hnunagk 100278&lt;/li&gt;
                              &lt;li class="active-result result-selected" style="" data-option-array-index="2"&gt;10tc Tatgaa 100179&lt;/li&gt;
  </code></pre>
  
  <p>The code which I have wrote for this section is :</p>
  
  <pre><code>self.driver.find_element_by_css_selector("tbody&gt;tr&gt;td&gt;div&gt;a.chosen-single").click()
  select=Select(self.driver.find_element_by_css_selector("tbody&gt;tr&gt;td&gt;div&gt;a[tabindex='-1']"))
  select.select_by_index(0)
  </code></pre>
  
  <p>The exception I am getting is </p>
  
  <pre><code>selenium.common.exceptions.UnexpectedTagNameException: Message: Select only works on &lt;select&gt; elements, not on &lt;a&gt;`
  </code></pre>
  
  <p>Any help will be appreciated.</p>