Commonly used webrat steps found in cucumber
(replace words in [brackets] with the approprate word.)
Given
Given I am on [page_name]
When
When I go to [page_name] When I press "[button]" When I follow "[link]" When I fill in "[field]" with "[value]" When I select "[value]" from "[field]" When I select "[time]" as the date and time #datetime_select When I select "[datetime]" as the "[datetime_label]" date and time #specific datetime_select When I select "[time]" as the time #time select When I select "[time]" as the "[time_label]" time #specific time select When I select "[date]" as the date #date_select When I select "[date]" as the "[date_label]" date #specific date_select When I check "[field]" When I uncheck "[field]" When I choose "[field]" When I attach the file at "[path]" to "[field]"
Then
Then I should see "[text]" Then I should not see "[text]" Then the "[field]" field should contain "[value]" Then the "[field]" field should not contain "[value]" Then the "[label]" checkbox should be checked Then I should be on [page_name]

