Method: Webrat::Selenium::Matchers#assert_have_xpath

Defined in:
lib/webrat/selenium/matchers/have_xpath.rb

#assert_have_xpath(expected) ⇒ Object



42
43
44
45
# File 'lib/webrat/selenium/matchers/have_xpath.rb', line 42

def assert_have_xpath(expected)
  hs = HaveXpath.new(expected)
  assert hs.matches?(response), hs.failure_message
end