Sha256: 80d7287d9d14caec1151a522ddd0e0ee0cf71bc425fec1c8b851c7ff40db450a
Contents?: true
Size: 476 Bytes
Versions: 2
Compression:
Stored size: 476 Bytes
Contents
module Screengem # # Base class for all screen elements. # # Calling visit does nothing when currently navigated to the target. # class ScreenElement include Capybara::DSL def visit(visit_uri = visit_path) return if visit_uri == page.current_path page.visit(visit_uri) end # # Subclasses override the visit_path method to participate in auto visit. # See Screengem::AutomaticVisit. # def visit_path end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
screengem-0.7.2 | lib/screengem/screen_element.rb |
screengem-0.7.1 | lib/screengem/screen_element.rb |