Permalink
Browse files

assert target exists when dragging text

  • Loading branch information...
1 parent c1bacf0 commit ff1cb122617ce99210c2dc644b5aae09fb0f6e49 @jarmo jarmo committed Jul 27, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 watir-classic/lib/watir-classic/input_elements.rb
@@ -232,6 +232,7 @@ def drag_contents_to(destination_how, destination_what)
dispatch_event("onSelect")
dispatch_event("ondragstart")
dispatch_event("ondrag")
+ destination.assert_exists
destination.dispatch_event("onDragEnter")
destination.dispatch_event("onDragOver")
destination.dispatch_event("ondrop")

0 comments on commit ff1cb12

Please sign in to comment.