class Screengem::ScreenElement

Base class for all screen elements.

Calling visit does nothing when currently navigated to the target.

Public Instance Methods

visit(visit_uri = visit_path) click to toggle source
# File lib/screengem/screen_element.rb, line 11
def visit(visit_uri = visit_path)
  return if visit_uri == page.current_path

  page.visit(visit_uri)
end
visit_path() click to toggle source

Subclasses override the visit_path method to participate in auto visit. See Screengem::AutomaticVisit.

# File lib/screengem/screen_element.rb, line 21
def visit_path
end