Skip to content

Instantly share code, notes, and snippets.

@mgreenly
Created April 24, 2010 15:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mgreenly/377697 to your computer and use it in GitHub Desktop.
Save mgreenly/377697 to your computer and use it in GitHub Desktop.
Given /^(?:|I )am on (.+)$/ do |page_name|
visit path_to(page_name)
selenium.wait_for_page_to_load(5)
end
When /^(?:|I )press "([^\"]*)"$/ do |button|
click_button(button)
selenium.wait_for_page_to_load(5)
end
When /^(?:|I )follow "([^\"]*)"$/ do |link|
click_link(link)
selenium.wait_for_page_to_load(5)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment