Class: Capybara::Session

Inherits:
Object
  • Object
show all
Defined in:
images/spec/support/spec_helper.rb

Instance Method Summary collapse

Instance Method Details

#has_image?(src) ⇒ Boolean


3
4
5
# File 'images/spec/support/spec_helper.rb', line 3

def has_image?(src)
  has_xpath?("//img[contains(@src,'#{src}')]")
end