Web Development

Navigation

visit('/posts')
visit(post_path(post))

Clicking Links and Buttons

click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text')
click('Button Value')

Interacting with Forms

fill_in('First Name', :with => 'Mark')
fill_in('Password', :with => 'password')
fill_in('Description', :with => 'Description')
choose('radio button')
check('checkbox')
uncheck('checkbox')
attach_file('image field', '/path/to/image.png')