title: how to select the value from "Span Type dropdown" in Selenium webdriver
body: <p>how to select the value from "Span Type dropdown"  in Selenium webdriver</p>
  
  <p>I am able to click on dropdown by using XPath but not able to select the value from the dropdown.
  My XPath for clicking on Dropdown is: </p>
  
  <pre><code>driver.findElement(By.xpath(".//*[@id='minexpButton']/span")).click();
  </code></pre>
  
  <p>When i use the above code in Selenium, dropdown is expanded but i am not able to select the value from the Dropdown</p>
  
  <p>MY HTML code is as below:</p>
  
  <pre><code>&lt;span id="minexpButton" class="yui-button yui-menu-button yui-button-active yui-menu-button-active" style="background-color: rgb(255, 255, 255); display: -moz-inline-box;"&gt;
  
  &lt;div id="minexpSelectionMenu" class="yui-module yui-overlay yui-button-menu yui-menu-button-menu" style="z-index: 1003; visibility: visible; left: 367.683px; top: 1050.6px;"&gt;
  
  &lt;div class="bd"&gt;
  &lt;div class="selectionMenu"&gt;
  &lt;div class="ulDiv" style="overflow: auto; width: 64px; height: 210px;"&gt;
  &lt;div class="liDiv selected"&gt;
  
  &lt;a class="txt_black heading_4" href="#" tabindex="-1" target="_self"&gt;- Min -&lt;/a&gt;
  &lt;/div&gt;
  
  &lt;div class="liDiv"&gt;
  &lt;a class="txt_black heading_4" href="#" tabindex="-1" target="_self"&gt;0&lt;/a&gt;
  &lt;/div&gt;
  
  &lt;div class="liDiv"&gt;
  &lt;a class="txt_black heading_4" href="#" tabindex="-1" target="_self"&gt;1&lt;/a&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>How can I select the value from dropdown?</p>