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

MouseClick not clicking on element

3 Answers 236 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jeff
Top achievements
Rank 1
Jeff asked on 25 May 2017, 10:29 PM

The MouseClick event does not click on the element.  The mouse always clicks in the wrong location.  This is a sample of what my code looks like where cw is my active browser.

cw.Find.ById<HtmlInputText>("igtxtctl00_Main_txtCycleIntervalNum").MouseClick();

This is working in IE but does not click in the correct location in FF or Chrome.  This is only a problem on my machine.  I can execute the same tests on another machines and it clicks in the correct location.  I recently got some new high resolution monitors and was thinking the issue might be with my monitors.  I changed the resolution to the same resolution as the machines the tests work on and they still break on my machine.  At a loss of what to do.

 

3 Answers, 1 is accepted

Sort by
0
Nikolai
Telerik team
answered on 26 May 2017, 10:13 AM
Hello Jeff,

Telerik Testing Framework still doesn't fully support 4k(high-res) monitors. You can switch to "normal" client-based Click(). which doesn't require screen coordinates.

Regards,
Nikolai
Progress Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
0
Jeff
Top achievements
Rank 1
answered on 06 Jun 2017, 08:48 PM
I am using 2560 x 1440 with my new monitors, they are not 4k. I was using 1920 x 1080 with my old monitors.  However I can set my new monitors to the lower 1920 x 1080 resolution and the mouseclick still does not work. Everything worked before I switched monitors. 
0
Nikolay Petrov
Telerik team
answered on 09 Jun 2017, 03:19 PM
Hi Jeff,

Would you check on the monitor DPI settings if they are correctly set, please?

I hope this would fix the problem.

Kind Regards,
Nikolay Petrov
Progress Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
Tags
General Discussions
Asked by
Jeff
Top achievements
Rank 1
Answers by
Nikolai
Telerik team
Jeff
Top achievements
Rank 1
Nikolay Petrov
Telerik team
Share this question
or