module RubyApp module Elements module Pages module TestPages require 'rubyapp/elements/pages/test_pages/base_test_page' class BreadcrumbsTestPage < RubyApp::Elements::Pages::TestPages::BaseTestPage template_path(__FILE__) def initialize super require 'rubyapp/elements/link' @add_link = RubyApp::Elements::Link.new @add_link.clicked do |element, event| RubyApp::Session.request.logger.debug("RubyApp::Elements::Pages::TestPages::BreadcrumbsTestPage element=#{element.class.inspect} event=#{event.class.inspect}") RubyApp::Session.current.pages << RubyApp::Elements::Pages::TestPages::BreadcrumbsTestPage.new event.refresh end end end end end end end