title: How to select parent of parent component by xpath
body: <p>And is there a way to get to parent of parent of parent? :) Not to make it this way:</p>
  
  <pre><code>driver.find_element_by_xpath("//*[contains(text(), 'folder name')]").find_element_by_xpath('..').find_element_by_xpath('..').find_element_by_xpath('..').find_element_by_xpath('//tr[2]/td[2]/div')
  </code></pre>
  
  <p>So I need to find at first my folder name, than go to parents and only than find my element. It is the only way I can made it. Because all folders have the same elements.</p>