title: How to select a combobox value with Selenium WebDriver where it's a div with role of combobox
body: <p>My HTML code has a div tag with the role as combobox, i.e.    </p>
  
  <pre><code>&lt;div role="combobox"&gt;...&lt;/div&gt;
  </code></pre>
  
  <p>I am trying to select an item from the combo box through selenium driver with java.</p>
  
  <p>I tried using "Select" class as recommended here : 
  <a href="https://stackoverflow.com/questions/20138761/how-to-select-a-dropdown-value-in-selenium-webdriver-using-java">How to select a dropdown value in Selenium WebDriver using Java</a></p>
  
  <p>but since it is a div, I get an error saying that </p>
  
  <blockquote>
    <p>"UnexpectedTagNameException: element should have been select but was div"</p>
  </blockquote>
  
  <p>I think it is because of the div role="combobox".</p>
  
  <p>Is there any way to resolve this issue ?</p>