Module: Sandwich::WithinHelper

Defined in:
lib/sandwich/cucumber/web_steps.rb

Instance Method Summary collapse

Instance Method Details

#inside(locator, options = {}) ⇒ Object



3
4
5
# File 'lib/sandwich/cucumber/web_steps.rb', line 3

def inside(locator, options = {})
  locator ? within(:xpath, locator) { yield } : yield    
end