I am doing:
page.should have_xpath("//img[contains(@class, 'foobar')]", :count =>
0)
but cucumber tells me:
expected xpath "//img[contains(@class, 'foobar')]" to return something
(RSpec::Expectations::ExpectationNotMetError)
... Shouldn't this be returning true/false ?
Patrick J. Collins
http://collinatorstudios.com
on 2011-09-20 23:51
on 2011-09-21 00:06
On Sep 20, 2011, at 11:45 PM, Patrick J. Collins wrote: > ... Shouldn't this be returning true/false ? have_xpath is a Capybara matcher that defines its own failure message: https://github.com/jnicklas/capybara/blob/master/l... HTH, David
on 2011-09-21 00:26
"have_[xpath]" is a custom matcher in Capybara. So, the answer would be no. https://github.com/jnicklas/capybara/blob/master/l...
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.