title: How to get the parent of an element in webdriver
body: <pre class="lang-html prettyprint-override"><code>&lt;div class="field select-container invalid" data-tooltip="Error message." "name="birthDate"&gt;
  &lt;div class="stack-wrap gutter-col-wrap-1"&gt;
  &lt;div class="stack size1of3"&gt;
  &lt;div class="gutter-col-1"&gt;
      &lt;div class="form-selectbox full-width"&gt;
      &lt;select name="day"&gt;
          &lt;option value=""&gt;Giorno&lt;/option&gt;
          &lt;option value="01"&gt;1&lt;/option&gt;
  </code></pre>
  
  <p>When used WebElement el = browser.switchTo().activeElement(), the focus is on "name" attribute. Need to find the parent which is "data-tooltip" in order to get the error message on the screen. Please help.</p>