class Capybara::UI::Form

Public Instance Methods

submit_with(attributes) click to toggle source

Submit form with attributes.

@param attributes [Hash] the form fields and their values

@return the current widget

# File lib/capybara/ui/widgets/form.rb, line 13
def submit_with(attributes)
  set attributes
  submit
end
to_table() click to toggle source
# File lib/capybara/ui/widgets/form.rb, line 18
def to_table
  info = self.
    class.
    field_names.
    each_with_object({}) { |e, a| a[e.to_s] = widget(e).to_cell }

  [info]
end