This is a migrated thread and some comments may be shown as answers.

Mouse isn't working in WPF test

1 Answer 78 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Oleksii
Top achievements
Rank 1
Oleksii asked on 13 Apr 2018, 04:53 PM

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();

1 Answer, 1 is accepted

Sort by
0
Elena
Telerik team
answered on 18 Apr 2018, 01:35 PM
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
 
Tags
General Discussions
Asked by
Oleksii
Top achievements
Rank 1
Answers by
Elena
Telerik team
Share this question
or