Method: Capybara::Session#within_fieldset

Defined in:
lib/capybara/session.rb

#within_fieldset(locator, &block) ⇒ Object

Execute the given block within the a specific fieldset given the id or legend of that fieldset.

Parameters:

  • locator (String)

    Id or legend of the fieldset


378
379
380
# File 'lib/capybara/session.rb', line 378

def within_fieldset(locator, &block)
  within(:fieldset, locator, &block)
end