lib/kelp/navigation.rb
# Follow a link on the page.
#
# @example
#   follow "Login"
#   follow "Contact Us", :within => "#footer"
#
# @param [String] link
#   Capybara locator expression (id, name, or link text)
# @param [Hash] scope
#   Scoping keywords as understood by {#in_scope}
#
Follow a link on the page.
Follow a link on the page .
def follow(link, scope={})
      in_scope(scope) do
        begin
          click_link(link)
        rescue Capybara::ElementNotFound
          raise Kelp::MissingLink,
            "No link with title, id or text '#{link}' found"
        end
      end
    end
def follow ( link , scope = { } ) in_scope ( scope ) do begin click_link ( link ) rescue Capybara :: ElementNotFound raise Kelp :: MissingLink , "No link with title, id or text '#{link}' found" end end end
Follow a link on the page.
Follow a link on the page .
link
<not_specific>
scope
<not_specific>
<not_specific>
scope Scoping keywords as understood by {#in_scope}
scope Scoping keywords as understood by { #in_scope }
example
follow "Login" follow "Contact Us", :within => "#footer"
follow " Login " follow " Contact Us " : within = > " #footer "