title: Getting the text after a label with Selenium WebDriver
body: <p>I've found other questions that look for <a href="https://stackoverflow.com/questions/10081536/using-selenium-webdriver-to-find-the-label-text">label text</a>, but what I'm after is the text after a label.</p>
  
  <p>So for example, I have a section of code:</p>
  
  <pre><code>&lt;p&gt;
  &lt;label&gt;My awesome name:&lt;/label&gt;
  "Mark Mayo"
  &lt;/p&gt;
  </code></pre>
  
  <p>My understanding is that if I wanted the label, I could use an XPath query with something like:</p>
  
  <pre><code>//label[text()='My awesome name:']
  </code></pre>
  
  <p>to see if the label exists, but am unsure how to access plain text that isn't inside the label, but after it instead.</p>
  
  <p>Suggestions?</p>