title: Watir: Finding the Parent div containing a specific child
body: <p>I have the following HTML Structure:</p>
  
  <pre><code>&lt;div class="items"&gt;
    ...some complex structure with many sub divs ...
                       &lt;div id="specificchild"&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="items&gt;
    ... 
  &lt;/div&gt;
  </code></pre>
  
  <p>and i need to get to the DIV with the class item, that contains the "specificchild"-DIV.
  The Problem is that the specificchild is not directly related to the parent div "items" and also the structur in between is not always the same. So </p>
  
  <pre><code>browser.div(:id =&gt; "specificchild").parent
  </code></pre>
  
  <p>wont work.</p>
  
  <p>Is there a possibility to select the div without looping through all of them and asking if it contains the "specificchild"?</p>