Skip to content

Instantly share code, notes, and snippets.

@jpcody
Created June 3, 2011 18:04
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 jpcody/1006813 to your computer and use it in GitHub Desktop.
Save jpcody/1006813 to your computer and use it in GitHub Desktop.
scenario "A user should be able to save an opportunity" do
all('input[type="text"]').each{ |input| fill_in( input[:id], :with => "Test Data" ) }
all('select').each do |select|
option = first("##{select[:id]} option")
select( option[:value], :from => select[:id] )
end
click_on( "Save" )
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment