Module: ElabsMatchers::Matchers::HaveImage

Defined in:
lib/elabs_matchers/matchers/have_image.rb

Defined Under Namespace

Classes: HaveImageMatcher

Instance Method Summary collapse

Instance Method Details

#have_image(value) ⇒ Object

Asserts if the supplied image exists or not

Example: page.should have_image(“Logo”)

Parameters:

  • value (String)

    The alt attribute content of the image



68
69
70
# File 'lib/elabs_matchers/matchers/have_image.rb', line 68

def have_image(value)
  HaveImageMatcher.new(value)
end