Mouse isn't working in WPF test

2 posts, 0 answers
  1. Oleksii
    Oleksii avatar
    3 posts
    Member since:
    Jan 2016

    Posted 13 Apr 2018 Link to this post

    Have 2 pc. All is local machines, no one rdp. Have a same test (WPF app). In the first pc tests pass done without any problem, but in the second I have a strange problem - no one of mouse actions isn't working (Move, Click, TurnMouseWheel). Any reasons why?

     

    Simple part of tests code:

     

    var importButton = Manager.ActiveApplication.MainWindow.Find.ByTextContent("Import");
    importButton.Wait.ForVisible(5000);
     
    TestContext.WriteLine("Hover.");
    importButton.User.HoverOver();
     
    TestContext.WriteLine("Click.");
    importButton.User.Click();
  2. Elena Tsvetkova
    Admin
    Elena Tsvetkova avatar
    1033 posts

    Posted 18 Apr 2018 Link to this post

    Hi Oleksii,

    Please double check the permissions of the user which runs the tests on the second machine. Also it is important to have an active unlocked desktop session during the execution. 

    If you need any further assistance I will appreciate any details on the executions you perform on both machines! Thanks in advance! 

    Regards,
    Elena Tsvetkova
    Progress Telerik
     
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
     
Back to Top