Class: Dill::Form

Inherits:
FieldGroup show all
Defined in:
lib/dill/form.rb

Instance Attribute Summary

Attributes inherited from Widget

#root

Instance Method Summary collapse

Methods inherited from FieldGroup

check_box, default_locator, field, field_names, #fields, select, #set, text_field, #to_table

Methods inherited from Widget

#!=, #!~, #<, #<=, #==, #=~, #>, #>=, action, #click, #diff, find_in, #has_action?, #initialize, #inspect, #match, present_in?, #reload, root, selector, #text, #to_cell, #to_f, #to_i, widget, widget_delegator

Methods included from WidgetContainer

#has_widget?, #widget

Constructor Details

This class inherits a constructor from Dill::Widget

Instance Method Details

#submit_with(attributes) ⇒ Object

Submit form with attributes.

Parameters:

  • attributes (Hash)

    the form fields and their values

Returns:

  • the current widget



10
11
12
13
# File 'lib/dill/form.rb', line 10

def submit_with(attributes)
  set attributes
  submit
end