Skip to content

Instantly share code, notes, and snippets.

@kulte
Created March 5, 2014 20:21
Show Gist options
  • Save kulte/9375803 to your computer and use it in GitHub Desktop.
Save kulte/9375803 to your computer and use it in GitHub Desktop.
Seriously...
source = page.all('.item').last
target = page.all('.item').first
while source.nil?
source = page.all('.item').last
end
while target.nil?
target = page.all('.item').first
end
source.drag_to(target)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment