Module Webrat::Matchers
In: lib/webrat/core/matchers/have_xpath.rb
lib/webrat/core/matchers/have_selector.rb
lib/webrat/core/matchers/have_content.rb

Methods

Public Instance methods

Asserts that the body of the response contain the supplied string or regexp

Asserts that the body of the response does not contain the supplied string or regepx

Asserts that the body of the response contains the supplied selector

Asserts that the body of the response does not contain the supplied string or regepx

Matches the contents of an HTML document with whatever string is supplied

Matches HTML content against a CSS 3 selector.

Parameters

expected<String>:The CSS selector to look for.

Returns

HaveSelector:A new have selector matcher.

Matches HTML content against an XPath query

Parameters

expected<String>:The XPath query to look for.

Returns

HaveXpath:A new have xpath matcher.
match_selector(name, attributes = {}, &block)

Alias for have_selector

match_xpath(expected, options = {}, &block)

Alias for have_xpath

[Validate]