Skip to content

Instantly share code, notes, and snippets.

@jarib
Created May 29, 2009 11:18
Show Gist options
  • Save jarib/119902 to your computer and use it in GitHub Desktop.
Save jarib/119902 to your computer and use it in GitHub Desktop.
def drag_to(element)
assert_exists # locates the element, stored in @object
element.assert_exists # make sure the other element exists
other = element.object # fetch the HtmlUnit object
@object.mouseDown
other.mouseMove
other.mouseUp
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment