title: How to get all the elements from the tag
body: <p>How to get all the title and the count (6) from all the elements </p>
  
  <p>i need to get the values </p>
  
  <p>Rs. 2000 - Rs. Below<br>
  Rs. 2001 - Rs. 5000<br>
  Rs. 5001 - Rs. 10000<br>
  Rs. 10001 - Rs. 18000 
  Rs. 18001 - Rs. 25000 
  Rs. 25001 - Rs. 35000 
  Rs. 35001 and Above   </p>
  
  <p>and the values 6 34 41 12 15 9  4</p>
  
  <p>Below is the html</p>
  
  <pre><code>&lt;div class="body"&gt;
  &lt;div class="oneFacet bmargin5"&gt;
  &lt;input class="expandedContent dont-show" type="text"&gt;
  &lt;div class="loading"&gt;&lt;/div&gt;
  &lt;div class="head line"&gt;
  &lt;ul id="price_range" class="facets" nofilter="1" displaytype="" keepcollapsed="" valuelimit=""&gt;
  &lt;li class="facet" title="Rs. 2000 and Below"&gt;
  &lt;a class=" active "&gt;
  &lt;input class="facetoption" type="checkbox" value="facets.price_range%5B%5D=Rs.+2000+and+Below" autocomplete="off"&gt;
  &lt;span class="title fk-inline-block lmargin5" original="Rs. 2000 and Below"&gt;Rs. 2000 and Below&lt;/span&gt;
  &lt;span class="count"&gt;(6)&lt;/span&gt;
  &lt;/a&gt;
  &lt;/li&gt;
   &lt;li class="facet" title="Rs. 2001 - Rs. 5000"&gt;
  &lt;a class=" active "&gt;
  &lt;input class="facetoption" type="checkbox" value="facets.price_range%5B%5D=Rs.+2001+-+Rs.+5000" autocomplete="off"&gt;
  &lt;span class="title fk-inline-block lmargin5" original="Rs. 2001 - Rs. 5000"&gt;Rs. 2001 - Rs. 5000&lt;/span&gt;
  &lt;span class="count"&gt;(34)&lt;/span&gt;
  &lt;/a&gt;
  &lt;/li&gt;
  
      &lt;li class="facet" title="Rs. 5001 - Rs. 10000"&gt;
      &lt;li class="facet" title="Rs. 10001 - Rs. 18000"&gt;
      &lt;li class="facet" title="Rs. 18001 - Rs. 25000"&gt;
      &lt;li class="facet" title="Rs. 25001 - Rs. 35000"&gt;
      &lt;li class="facet" title="Rs. 35001 and Above"&gt;
      &lt;/ul&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>iam using the below code </p>
  
  <pre><code>WebElement ul = driver.findElement(By.cssSelector("div.oneFacet bmargin5 ul"));
      List&lt;WebElement&gt; lis = ul.findElements(By.tagName("li"));
      for (WebElement li : lis) {
       System.out.println("names "+li.getText());
      }
  </code></pre>
  
  <p>but getting the error.</p>
  
  <pre><code>org.openqa.selenium.NoSuchElementException: Unable to locate element: {"method":"css selector","selector":"div.oneFacet bmargin5 ul"}
  Command duration or timeout: 30.10 seconds
  For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html
  Build info: version: '2.39.0', revision: 'ff23eac', time: '2013-12-16 16:11:15'
  System info: host: 'VALUED-8JGOG5PH', ip: '192.168.1.4', os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.7.0_45'
  Session ID: 98a38901-4a9b-4aef-8823-b96f9043f5ad
  Driver info: org.openqa.selenium.firefox.FirefoxDriver
  Capabilities [{platform=XP, acceptSslCerts=true, javascriptEnabled=true, cssSelectorsEnabled=true, databaseEnabled=true, browserName=firefox, handlesAlerts=true, browserConnectionEnabled=true, webStorageEnabled=true, nativeEvents=true, rotatable=false, locationContextEnabled=true, applicationCacheEnabled=true, takesScreenshot=true, version=26.0}]
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
      at java.lang.reflect.Constructor.newInstance(Unknown Source)
      at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:193)
  etc....
  </code></pre>