I am using Cucumber / Capybara with Rails 3 and am trying to validate the existence of an image after upload. I\'m not sure how to check the url of the image to validate it.
Hi I'm not good with XPATH but with CSS you can try :
if page.respond_to? :should page.should have_selector("img[src$='#{imagename}']") else assert page.has_selector?("img[src$='#{imagename}']") end
wish helps ! jramby