title: Selenium webdriver C# CSS dropdown Issue - Element should have been select but was div
body: <p>I have a html code as below.</p>
  
  <pre><code>&lt;div class="rowElem fullSize "&gt;
  &lt;div class="jqTransformSelectWrapper" style="z-index: 10; width: 276px;"&gt;
  &lt;div&gt;
  &lt;span style="width: 245px;"&gt;MasterCard&lt;/span&gt;
  &lt;a class="jqTransformSelectOpen" href="#"/&gt;
  &lt;/div&gt;
  &lt;ul style="width: 274px; display: none; visibility: visible; height: 100px; overflow: hidden;"&gt;
  &lt;li&gt;&lt;a class="selected" index="0" href="#"&gt;MasterCard&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;li&gt;&lt;li&gt;
  &lt;/ul&gt;
  &lt;select id="CardProvider" class="jqTransformHidden" name="CardKey" style=""&gt;
  &lt;option value="1"&gt;MasterCard&lt;/option&gt;
  &lt;option value="2"&gt;VISA&lt;/option&gt;
  &lt;option value="3"&gt;AMEX&lt;/option&gt;
  &lt;option value="4"&gt;DEBIT&lt;/option&gt;
  &lt;/select&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Here, this is a dropdown menu where the //div/div/div has just one field displayed. 
  //div/div/ul has four individual li which has the same provider input as the select tag.</p>
  
  <p>I tried with a lot of combinations to choose a specific value from the drop down.</p>
  
  <p>If I use //div/div[@select[id="CardProvider"]  with FindElement and it returns the very first value.  </p>
  
  <p>If I use //div/div/[@select[id]"cardProvider"]/ul//a - It is returning me with four values.</p>
  
  <p>However I am not able to select the menu as the expected tag select but was div. If I write a query to bring the tagname as select, the text value returned as null.</p>
  
  <p>I didnot give my selenium command as nothing worked and given the html for your reference. Kindly provide me your inputs to overcome this.</p>