Class: Cucumber::Salad::Widgets::Form

Inherits:
FieldGroup show all
Defined in:
lib/cucumber/salad/widgets/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

find_in, #has_action?, #initialize, #inspect, present_in?, #reload, root, selector, #to_s

Methods included from Cucumber::Salad::WidgetMacros

#action, #widget, #widget_delegator

Methods included from Cucumber::Salad::WidgetContainer

#has_widget?, #widget

Constructor Details

This class inherits a constructor from Cucumber::Salad::Widgets::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



12
13
14
15
# File 'lib/cucumber/salad/widgets/form.rb', line 12

def submit_with(attributes)
  set attributes
  submit
end