Skip to content

Instantly share code, notes, and snippets.

@diago
diago / capybara cheat sheet
Created April 5, 2011 14:42 — forked from zhengjia/capybara cheat sheet
Capybara Cheatsheet
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click_link_or_button('Link Text') # Click either a link or a button
click('Button Value')