Can we use Microsoft.VisualStudio.TestTools.UITesting.Mouse for automation purpose in a program (Is it possible to use it with our normal application cording. Not for the testing. )
I want to automate some mouse movements in my program. Like we are doing in Microsoft UI automation. I am not going to create a test project.
If this is possible please advice me.
Is mouse simulation is possible with UI automation?
EDIT
Since this is (Microsoft.VisualStudio.TestTools.UITesting.Mouse) used for coded UI testing I want to know is it possible to use in normal programming purpose. Because this Mouse class has some of useful methods which I need.
It may be technically possible to use it from an application. I believe all you need to do is make sure you call
Playback.Initializebefore using theMouseclass. However, I believe the license for VS will not allow you to redistribute the required dlls with your application.UI Automation does not have facilities for low level input simulation.
I’ve use the TestApi project with some success to automate mouse and keyboard input when UI Automation and the Coded UI api’s could not be used. It is easy to accomplish moving and clicking the mouse with the the
Mouseclass there: