Skip to content

Instantly share code, notes, and snippets.

@gramos
Created April 22, 2015 16:42
Show Gist options
  • Save gramos/bd4cd908247298e28fe9 to your computer and use it in GitHub Desktop.
Save gramos/bd4cd908247298e28fe9 to your computer and use it in GitHub Desktop.
When(/^the user selects "(.*?)" question$/) do |question_prompt|
selected_questions = find('#selected-questions')
within('#unselected-questions') do
find(".question-prompt").drag_to selected_questions
end
sleep(3)
save_and_open_page
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment