title: How will Selenium handle dynamically generated pages / complex DOM hierarchies in future?
body: <p>I'm trying to write Test Automation scripts using Selenium, but the page elements are not structured in the traditional way - i.e. in a strict hierarchy. Elements which are directly below other elements on the Page are not following those elements in the DOM, therefore it's impossible to relate/link one element on a page to another using an xpath expression.</p>
  
  <p>In a tool like Sahi, i can create relational identifiers using Sahi's above/below/left/right API functions.</p>
  
  <p>Is there any proposal to introduce such methods in Selenium now that DOM's are so dynamic and complex?</p>
  
  <p>Is anyone aware of alternative tools or libraries which overcome the above described issues?</p>