title: Selenium-Java Webdriver: I am getting error as Element should have been "select" but was "input" when i select the value form dropdown box
body: <p>Error message "Element should have been "select" but was "input""is shown when i select the value form drop down box. I have tried with selectByValue() amd selectByIndex().</p>
  
  <p>HTML: </p>
  
  <pre><code>&lt;div class="rcbScroll rcbWidth" style="width: 100%; overflow: auto; height: 40px;"&gt;
  &lt;ul class="rcbList" style="list-style:none;margin:0;padding:0;zoom:1;"&gt;
  &lt;li class="rcbItem"&gt;TIN&lt;/li&gt;
  &lt;li class="rcbHovered"&gt;SSN&lt;/li&gt;
  &lt;/ul&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>java code is:</p>
  
  <pre><code>Select select=new Select(driver.findElement(By.xpath(OR.getProperty("SSN"))));
  select.selectByValue("SSN");
  </code></pre>