title: org.openqa.selenium.support.ui.UnexpectedTagNameException: Element should have been "select" but was "input"
body: <p>The following code used to work a week ago, but now I'm getting an error:</p>
  
  <blockquote>
    <p>org.openqa.selenium.support.ui.UnexpectedTagNameException: Element should have been "select" but was "input"</p>
  </blockquote>
  
  <p>Please help. </p>
  
  <pre><code>  public analyticsLandingPage verifyReportingProfile() throws InterruptedException{
      Select select = new Select(driver.findElement(By.xpath(".//* [@id='reporting_profile_id']")));
      select.selectByVisibleText("Arria");
      Thread.sleep(1000L);
      //reporting_profile.findElement(By.xpath(//[@id='s2id_reporting_profile_id']/a")).isDisplayed();
      //reporting_profile.sendKeys("Arria");
      //reporting_profile.sendKeys(Keys.TAB);
      reporting_profile.isDisplayed();
  </code></pre>
  
  <p>Page HTML:</p>
  
  <pre><code>    &lt;div class="form-group"&gt;
       &lt;label class="col-sm-2 control-label"     for="reporting_profile_id"&gt;Reporting profile&lt;/label&gt;
      &lt;div class="col-sm-10"&gt;
      &lt;div id="s2id_reporting_profile_id" class="select2-container select2-allowclear reporting_profile" style="width: 50%;"&gt;
      &lt;a class="select2-choice" tabindex="-1" href="javascript:void(0)"&gt;
      &lt;span id="select2-chosen-7" class="select2-chosen"&gt;Agency B - No Adwords Cost or Conversions&lt;/span&gt;
      &lt;abbr class="select2-search-choice-close"&gt;&lt;/abbr&gt;
      &lt;span class="select2-arrow" role="presentation"&gt;
     &lt;/a&gt;
     &lt;label class="select2-offscreen" for="s2id_autogen7"&gt;Reporting profile&lt;/label&gt;
     &lt;input id="s2id_autogen7" class="select2-focusser select2-offscreen" type="text" role="button" aria-haspopup="true" aria-labelledby="select2-chosen-7"&gt;
      &lt;/div&gt;
       &lt;input id="reporting_profile_id" class="reporting_profile" 
        type="hidden" name="reporting_profile_id" tabindex="-1 
        title="Reporting    profile" style="display: none;" value="12"&gt;
      &lt;/div&gt;
      &lt;/div&gt;
  </code></pre>