Module: SitePrism::ElementChecker

Included in:
Page, Section
Defined in:
lib/site_prism/element_checker.rb

Instance Method Summary collapse

Instance Method Details

#all_there?Boolean


3
4
5
6
7
# File 'lib/site_prism/element_checker.rb', line 3

def all_there?
  Capybara.using_wait_time(0) do
    self.class.mapped_items.all? { |element| send "has_#{element}?" }
  end
end