I have a WPF test that does some setup work, then moves the mouse to various positions on a map to draw a box. Once the box is complete then a double click completes the shape. After this a save button is clicked and other actions are performed.
The issue I am having is that all the setup actions work correctly and the post map actions work correctly, however all the map actions fail when the test is run. I believe this is because the mouse itself needs to move like a real user however I am unsure how to actually do this.
When the test is recorded then it produces multiple "LeftClick on X" actions which in code look like this:
Applications.XYZ.User.Click(ArtOfTest.WebAii.Core.MouseClickType.LeftClick, 7, 45, ArtOfTest.Common.OffsetReference.TopLeftCorner, ArtOfTest.Common.ActionPointUnitType.Percentage, ((System.Windows.Forms.Keys)(0)));
What I need is a similar command, but that moves the mouse from the current position to the recorded position and then clicks the left button. Other than this, it appears that everything seems to be working perfectly.