Skip to content

Instantly share code, notes, and snippets.

@mdarby
Created April 27, 2011 19:41
Show Gist options
  • Select an option

  • Save mdarby/945018 to your computer and use it in GitHub Desktop.

Select an option

Save mdarby/945018 to your computer and use it in GitHub Desktop.
Given I am on "page_name"
When I go to "page_name"
When I press "button"
When I follow "link"
When I follow "link" within "area"
When I fill in "text_field" with "text"
When I fill in "text" for "text field"
When I select "value" from "select box"
When I check "check_box"
When I uncheck "check_box"
When I choose "radio_box"
When I fill in "text_field" with "value"
|text_field | value|
Then I should see "text"
Then I should see "text" within "area"
Then I should not see "text"
Then I should not see "text" within "area"
Then the "text_field" should contain "value"
Then the "text_field" should not contain "value"
Then the "check_box" should be checked
Then the "check_box" should not be checked
Then I should be on "page_name"
# Custom
Then I should see the error "error"
When I try to go to the next page
Then the available options for "select_box" should be
| Select One |
| Yes |
| No |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment