CORE/world_gadgets/router/core_page_navigation.rb
#TODO: This needs refactoring into a module for the router
This needs refactoring into a module for the router
This needs refactoring into a module for the router
def navigate_via_route(route)
        route.prerequisites.each { |prerequisite| self.send(prerequisite) }
        action = route.action
        self.respond_to?(action) ? self.send(action) : @elements[action].click
        @world.assert_and_set_page(route.target_page)
    end
def navigate_via_route ( route ) route . prerequisites . each { | prerequisite | self . send ( prerequisite ) } action = route . action self . respond_to? ( action ) ? self . send ( action ) : @elements [ action ] . click @world . assert_and_set_page ( route . target_page ) end
TODO: This needs refactoring into a module for the router
TODO : This needs refactoring into a module for the router
route