title: Getting xpath of span text
body: <p>I have a HTML page with an element, </p>
  
  <p><code>&lt;div class="selectedCategory" style="" title=""&gt;
  &lt;div class="selectedCategoryName" style="" title=""&gt;Base programming&lt;/div&gt;</code></p>
  
  <p>The xpath I was trying to use is, </p>
  
  <p><code>//*[contains(div,'Base programming') and @class='selectedCategoryName']</code> - I'm getting no so such element when I try using firebug. </p>
  
  <p>If I use individual xpaths like, 
  <code>//*[contains(div,'Base programming')</code> and 
  <code>//*[@class='selectedCategoryName']</code> - It works</p>
  
  <p>But it tends to return so many element on the page. I need a xpath combining the above 2 elements. Please help me out here! </p>