class Webrat::Selenium::Matchers::HaveXpath
Public Class Methods
new(expected)
click to toggle source
# File lib/webrat/selenium/matchers/have_xpath.rb, line 5 def initialize(expected) @expected = expected end
Public Instance Methods
does_not_match?(response)
click to toggle source
# File lib/webrat/selenium/matchers/have_xpath.rb, line 17 def does_not_match?(response) response.session.wait_for do !response.selenium.is_element_present("xpath=#{@expected}") end rescue Webrat::TimeoutError false end
failure_message()
click to toggle source
matches?(response)
click to toggle source
# File lib/webrat/selenium/matchers/have_xpath.rb, line 9 def matches?(response) response.session.wait_for do response.selenium.is_element_present("xpath=#{@expected}") end rescue Webrat::TimeoutError false end