title: selenium xpath scrape of mixed content html span
body: <p>I'm trying to scrape a span element that has mixed content</p>
  
  <pre><code>&lt;span id="span-id"&gt;
    &lt;!--starts with some whitespace--&gt;
    &lt;b&gt;bold title&lt;/b&gt;
    &lt;br/&gt;
    text here that I want to grab....
  &lt;/span&gt;
  </code></pre>
  
  <p>And here's a code snippet of a grab that identifies the span.  It picks it up without a problem but the text field of the webelement is blank.  </p>
  
  <pre class="lang-cs prettyprint-override"><code>IWebDriver driver = new FirefoxDriver();
  driver.Navigate().GoToUrl("http://page-to-examine.com");
  var query = driver.FindElement(By.XPath("//span[@id='span-id']"));
  </code></pre>
  
  <p>I've tried adding /text() to the expression which also returns nothing.  If I add /b I do get the text content of the bolded text - which happens to be a title that I'm not interested in.  </p>
  
  <p>I'm sure with a bit of xpath magic this should be easy but I'm not finding it so far!!  Or is there a better way?  Any comments gratefully received.</p>