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

Hover menus accidentally getting clicked

4 Answers 84 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Maria
Top achievements
Rank 1
Maria asked on 08 Dec 2015, 03:22 PM

Hello

I hope someone can help.  Our website has menus at the top which expand on mouse hover.  This is causing problems in test playback as dependng on where the mouse ends up means that sometimes it activates the menu dropdown and in turn clicks on an item in there rather than where its supposed to be clicking.

Is there any way to stop this from happening?

Thanks

Maria

4 Answers, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 09 Dec 2015, 08:40 PM
Hello Maria,

I'm afraid there is no simple or global setting to stop this from happening. Do your test scripts actually move the mouse and click on items with a mouse click? The default behavior of Test Studio is to inject DOM clicks directly into the browser's DOM which does not use the mouse at all. Thus even if a pop-up menu is open Test Studio will not interact with that pop-up menu at all.

To avoid this problem you will need to add blind mouse click steps to your test scripts at the right points in your test scripts. The concept is to make the mouse move away from the pop-up menu so that the pop-up menu is not open when the mouse is trying to do a click.

I hope this helps.

Regards,
Cody
Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Maria
Top achievements
Rank 1
answered on 10 Dec 2015, 10:16 AM

Hi Cody

We have Simulate real clicks by default set on our project settings - if I switch this off will that solve the problem?

Also sorry to hijack this post - but do you know of a way I can set the typing speed at project level rather than test level?  About 90% of our input fields require 'simulate real typing' to be set but im finding the tests take ages to run back when left to the default of 50 and changing the speed on each test step is time consuming.

Thankyou

Maria

0
Cody
Telerik team
answered on 10 Dec 2015, 06:45 PM
Hello Maria,

The simulate real click default setting in the project settings only affects new recorded steps. It will not affect steps already recorded. Of course you can always go back to your already recorded steps and turn that property off in the step settings as shown in the attached screenshot. That will stop Test Studio from accidentally clicking on pop-up menus however not every web application works this way. Some web applications require simulate real click in order to work properly. I encourage you to experiment with this setting to see if your application will work with it turned off.

Let me know if that helps or if you need additional assistance.

Regards,
Cody
Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Caleb
Top achievements
Rank 1
answered on 18 Dec 2015, 12:57 AM

Hi guys,

I have a quick fix for this issue as I had it too. You can edit the step in code and remove the "ScrollToVisible" line of code. Alternatively you could probably make it scroll so the element is at the bottom as oppose to the top.

Regards, 

Caleb

Tags
General Discussions
Asked by
Maria
Top achievements
Rank 1
Answers by
Cody
Telerik team
Maria
Top achievements
Rank 1
Caleb
Top achievements
Rank 1
Share this question
or