Drag and Drop is not working when browser or System is locked

2 posts, 0 answers
  1. Kumar
    Kumar avatar
    12 posts
    Member since:
    Sep 2010

    Posted 24 Oct 2013 Link to this post

    Hi ,

    I am using  DragTo method to drag and drop the HTML control ("DragTo(HtmlControl control)"), It is working fine when 
    browser is maximized and mouse is not moved. But when browser is minimized or script are running  
    remotely or system is locked it is throwing error "threw exception: System.ComponentModel.Win32Exception: SendInput: Failed. Win32Error:"

    Please let me know if you have any solution for this.


  2. Boyan Boev
    Boyan Boev avatar
    1072 posts

    Posted 25 Oct 2013 Link to this post

    Hello Kumar,

    Any actions that requires moving the mouse (drag and drop) or sending key strokes requires an unlocked desktop and NOT minimize browser.

    Telerik tests are not the only types affected by this Windows limitation. You will find this is a general problem with any tool that performs UI testing. 

    You can check also this article.

    Boyan Boev
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
Back to Top