Locator
This library aims to extract common html element selection from testing tools such as Webrat, Capybara or Steam. At its core it constructs XPath objects using a simple boolean expression engine in order to locate elements in a Nokogiri DOM. It provides a bunch of Element classes that are targeted at implementing a Webrat-style DSL for convenience.
Usage
Of course you can use the underlying implementation, too, but there are three main public methods which are supposed to give you access to all you need.