title: Selecting value from <li> dropdown - Selenium
body: <p>I'm trying to select a value from a small dropdown that appears to be a "ul"
  Here's what I see in Firebug:</p>
  
  <pre><code>    &lt;button class="btn btn-default dropdown-toggle" aria-expanded="true"       aria-haspopup="true" data-toggle="dropdown" type="button"&gt;
  &lt;ul class="dropdown-menu"&gt;
  &lt;li&gt;
  &lt;a href="javascript:void(0)"&gt;1&lt;/a&gt;
  &lt;/li&gt;
  &lt;li&gt;
  &lt;a href="javascript:void(0)"&gt;2&lt;/a&gt;
  &lt;/li&gt;
  &lt;li&gt;
  &lt;a href="javascript:void(0)"&gt;3&lt;/a&gt;
  </code></pre>
  
  <p>Here's what I have so far, in Java: </p>
  
  <pre><code> public void selectPhoneType(String option)
      {
          driver.findElement(By.className("caret")).click();
          new WebDriverWait(driver, 5).until(ExpectedConditions.visibilityOfElementLocated(By.className("dropdown-menu")));
          WebElement element = driver.findElement()
      }
  </code></pre>
  
  <p>Let's say I wanted to <strong>select/click on option "1"</strong>. How would I complete my code? I haven't worked with "li" too much so I tried using a select, which obviously didnt work. Any help would be appreciated! Thanks</p>