lib/kelp/scoping.rb
# Wrapper for Capybara's `within`, but raises Kelp::InvalidScope
# instead of Capybara::ElementNotFound
Wrapper for Capybara's `within`, but raises Kelp::InvalidScope
instead of Capybara::ElementNotFound
Wrapper for Capybara ' s ` within ` but raises Kelp :: InvalidScope instead of Capybara :: ElementNotFound
def kelp_within(kind, selector=nil)
      begin
        within(kind, selector) { yield }
      rescue Capybara::ElementNotFound
        raise Kelp::InvalidScope,
          "Scope '#{selector || kind}' not found on page"
      end
    end
def kelp_within ( kind , selector = nil ) begin within ( kind , selector ) { yield } rescue Capybara :: ElementNotFound raise Kelp :: InvalidScope , "Scope '#{selector || kind}' not found on page" end end
Wrapper for Capybara's `within`, but raises Kelp::InvalidScope
instead of Capybara::ElementNotFound
Wrapper for Capybara ' s ` within ` but raises Kelp :: InvalidScope instead of Capybara :: ElementNotFound
kind
<not_specific>
selector
<not_specific>