# When in @javascript mode this will simulate clicking the back button on the browser. Uses capybara. Then /^(?:|I )click the browser(?:|\'s)? back button$/ do page.execute_script("history.back()") end