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



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

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