title: Find a p tag under a div with selenium?
body: <p>I have html markup like below:</p>
  
  <pre><code>&lt;div class="inline-error-content"&gt;
    &lt;p&gt;Invalid number.&lt;/p&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>It is a validation tag rendered when letters are typed into the Phone Number field on the screen.  I am writing a Selenium regression test to verify that this works - however, I am unsure how to get the p tag when it is rendered with no id or class name.  I don't really want to just find all p tags rendered by XPath as there would be multiple returned.</p>
  
  <p>I was trying the code below</p>
  
  <pre><code>Driver.FindElement(By.Name("telephoneNumber")).SendKeys("abc");
  Thread.Sleep(2000);
  var result = Driver.FindElement(By.XPath("//div[contains(@class, 'inline-error-content')]")); 
  </code></pre>
  
  <p>The <code>.Text</code> on the result is an empty string</p>