Feature: Web steps Scenario: /^the "([^"]*)" field should (not )?contain "([^"]*)"$/ When I go to "/forms/form1" Then the "Text control" field should contain "Text control value" Then the "Select control" field should contain "Label 2" Then the "Select control without selection" field should contain "Label 1" Then the "Textarea control" field should contain "Textarea control value" Then the "Empty control" field should contain "" Scenario: /^the "([^"]*)" field should (not )?contain:/ When I go to "/forms/form2" Then the "Text control" field should contain: """ Text control value """ Then the "Textarea control" field should contain: """ Textarea control line 1 Textarea control line 2 """ Then the "Empty textarea control" field should contain: """ """ Scenario: /^I should see a form with the following values:$/ When I go to "/forms/form1" Then I should see a form with the following values: | Text control | Text control value | | Select control | Label 2 | | Select control without selection | Label 1 | | Textarea control | Textarea control value | | Empty control | | Scenario: /^"([^"]*)" should be selected for "([^"]*)"$/ When I go to "/forms/form1" Then "Label 2" should be selected for "Select control" Then "Label 1" should be selected for "Select control without selection" Scenario: /^I go back$/ Given I go to "/static_pages/link_to_home" And I follow "Home" When I go back Then I should be on "/static_pages/link_to_home" Scenario: /^the "([^"]*)" checkbox(?: within (.*))? should be checked$/ When I go to "/forms/checkbox_form" Then the "Checked" checkbox should be checked And the "Unchecked" checkbox should not be checked # We only check for it to not die, reacting to click on arbitrary elements will not work without javascript Scenario: /^I click on "([^\"]+)"$/ When I go to "/static_pages/click_on" And I click on "Nested" And I click on "Button"