Class Capybara::XPath
In: lib/capybara/xpath.rb
Parent: Object

this is a class for generating XPath queries, use it like this:

    Xpath.text_field('foo').link('blah').to_s

this will generate an XPath that matches either a text field or a link

Methods

Attributes

paths  [R] 

Public Class methods

Public Instance methods

for_css(css)

Alias for from_css

Protected Instance methods

Sanitize a String for putting it into an xpath query

place this between to nodes to indicate that they should be siblings

[Validate]