title: WPF, White Automation, drag and drop hanging
body: <p>I'm currently trying to automate a test case using the <a href="http://white.codeplex.com/" rel="nofollow">White UI-Automation framework</a>.<br>
  In doing this I'm having some trouble with drag and drop.  I'm trying to drag from a button to a point on the screen, which I calculate based on the location of two other points. </p>
  
  <p>What happens is the button is clicked and the mouse moves to the correct location and then the application hangs until the mouse is manually moved or clicked then the drop occurs and the test continues.  If the mouse doesn't receive any manual interaction then the application continues to hang. </p>
  
  <p>The code looks like this: </p>
  
  <pre><code>var criteria = SearchCriteria.ByText(xText);
  var yLocation = window.Get(crite);
  var yPoint = yLocation.ClickablePoint;
  criteria = SearchCriteria.ByText(yText);
  var xPoint = window.Get(crite).ClickablePoint;
  var dropPoint = new Point(xPoint.X, yPoint.Y);
  criteria = SearchCriteria.ByText(buttonName);
  var button = (Button) window.Get(criteria);
  Mouse.Instance.DragAndDrop(button, button.ClickablePoint,yLocation,dropPoint);
  </code></pre>
  
  <p>Any code after this last line is not executed.  </p>
  
  <p>Thanks in advance for any help. </p>