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

How to get mouse clicks to work the way you want them to

5 Answers 105 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
gnuftw
Top achievements
Rank 2
gnuftw asked on 21 May 2015, 10:33 PM

I am having a difficult time getting my mouse clicks to work the way I want them to. I have tried recording with the recorder both docked and undocked.

Docked 

The problem with docking it is that the recorder takes up a good portion of my screen leaving the WPF I am testing fairly small relative to my entire screen size. When executing, the WPF takes up the entire screen and it ends up clicking in the wrong spot. Is it the difference in size of the WPF window that is causing this issue? Do I need to keep the size of the WPF window the same between recording and executing?

So I thought I would undock the recorder thinking my issue would be resolved...

Undocked

The good thing about undocking the recorder is that the WPF window no longer changes size between execution and recording. The bad thing is that when I get to select where I want my Left Mouse Click, the shaded region displayed is far off another monitor. Causing the mouse to click in the completely wrong spot when I go to execute my test.

How can I fix this issue?

~ Max

5 Answers, 1 is accepted

Sort by
0
Boyan Boev
Telerik team
answered on 26 May 2015, 08:01 AM
Hello Max,

Thank you for contacting us.

I am not sure if I understand you correctly.

What exactly happens when you have undocked the recorder? You are not able to record a step or you are not able to execute the step?

Please send us some screen shots or record a short Jing video so we can better understand the issue.

Hope to hear from you soon.

Regards,
Boyan Boev
Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
0
gnuftw
Top achievements
Rank 2
answered on 27 May 2015, 12:29 AM

My apologies for the poor phrasing. Let me try to rephrase this better.

Attached is a screenshot of a WPF being recorded. I would like to do a LeftClick on the Access Control button seen in MainWindow. I would like to complete the LeftClick at a Specific Point. The attached image with 19_13_45 in its name is what I see when I change the Location option to Specific Point. The attached image with 19_25_07 in its name is what I see when I try changing one of the X or Y values with their corresponding up/down arrows.

  • What is the shaded region indicating? Can I select a specific point outside of the shaded region? 
  • Does the little 9 square grid to the left of the X and Y coordinate entries indicate what side of the shaded region you are focusing on to move using the X and coordinate fields? 
  • Does adjusting the and coordinate values move the corresponding side of the shaded region (or click point if you have if the middle square is orange)?

How come the shaded region disappears whenever I attempt to change a Specific Point Coordinate? Is this expected?

Thanks!

~ Max

  ​

0
Boyan Boev
Telerik team
answered on 29 May 2015, 11:45 AM
Hello Maxwell,

What you are seeing is not expected.

Here is an article which describes how to use the specific location and it will answer to all your questions.

If the issue persists please send us a copy of your application so we can debug it and give you a solution.

Hope to hear from you soon.

Regards,
Boyan Boev
Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
0
gnuftw
Top achievements
Rank 2
answered on 05 Jun 2015, 09:42 PM

I am going to be using a different approach to doing these mouse clicks so no reason to pursue this.

~ Max

0
Boyan Boev
Telerik team
answered on 08 Jun 2015, 12:59 PM
Hello Maxwell,

Glad to hear that you have found a solution.

If you need further assistance please let us know.

Regards,
Boyan Boev
Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
Tags
General Discussions
Asked by
gnuftw
Top achievements
Rank 2
Answers by
Boyan Boev
Telerik team
gnuftw
Top achievements
Rank 2
Share this question
or