Sha256: b17cb6d4c440b074101955fd350285e7f40198e8024428a07e180763b4a946cb
Contents?: true
Size: 511 Bytes
Versions: 19
Compression:
Stored size: 511 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 include Screengem::RailsRoutes 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
19 entries across 19 versions & 1 rubygems