title: Selenium how to determine if element has child?
body: <p>I am using Selenium via c#. I use this XPath to get all the children elements</p>
  
  <pre><code>element.FindElements(By.XPath("./child::*"));
  </code></pre>
  
  <p>Although if there is no child, it throws an error after a timeout. I am looking for a simple way to determine if it has a child or not to avoid the exception.</p>