title: Clicking on span element existing in li in selenium
body: <p>I have been trying in selenium to click span element which has class named bullet. It's a tree structure where it expands it's children once clicked. I have tried in the following way, but it's not working.
  Below is the UI Code</p>
  
  <pre><code>&lt;ul id="treelist" class="ltree"&gt;
  &lt;li class="liClosed"&gt;
  &lt;span class="bullet"&gt; &lt;/span&gt;
  &lt;b&gt;Setup&lt;/b&gt;
  &lt;ul&gt;
   &lt;li&gt;&lt;/li&gt;
   &lt;li&gt;&lt;/li&gt;............
   .....................
  &lt;/ul&gt;
  &lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p><strong>The error is:</strong>
  The given selector //*ul[@id='treelist']//li[2]//span is either invalid or does not result in a WebElement</p>
  
  <p><strong>The code I am using is:</strong></p>
  
  <pre><code>WebDriver driver = new FirefoxDriver();
   driver.get("http://somewebapp");    
    WebElement userElement = driver.findElement(By.xpath("//*ul[@id='treelist']//li[2]//span"));
  </code></pre>
  
  <p>I tried many ways of editing the xpath, but couldn't succeed. Can someone please help solve this issue?</p>