Skip to content

Latest commit

 

History

History
45 lines (38 loc) · 1.63 KB

capybara_steps.md

File metadata and controls

45 lines (38 loc) · 1.63 KB

Pre-defined Steps

Browser Actions

   When I navigate to another page ""
   When I go forward using browser
   When I go back using browser
   When browser is refreshed
   When I have switched to another window ""
   When browser window is resized to width "" and height ""
   When browser window is maximized
   When I closed browser window
   When page is zoomed in
   When page is zoomed out
   When I scrolled to element with selector ""
   When element with selector is hovered over

User Actions

   Given  I am on “url”
   When I fill in “element” with the text “text”
   When I select the “link” link
   When I select the "button" button
   When I click on link having text “text"
   When I check “checkbox”
   When I uncheck “checkbox”
   When I choose “radio button”
   When I select option “option” from the dropdown “dropdown”
   When I attach the file “file_path" to the field “locator”
   When I hover over the element “locator"

Assertions

   Then the page title is  “title"
   Then I see the element “element” with the text “text”
   Then page contains “element”
   Then I see element “element” “count” times
   Then page contains the link "link"
   Then page contains the button  “button”
   Then page contains the field “field”
   Then page contains the table “table”
   Then the element “element” is checked
   Then the element “element” is unchecked
   Then the page contains the following content "content"