Hover menus accidentally getting clicked

5 posts, 0 answers
  1. Maria
    Maria avatar
    15 posts
    Member since:
    Oct 2011

    Posted 08 Dec 2015 Link to this post

    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

  2. Cody
    Admin
    Cody avatar
    3360 posts

    Posted 09 Dec 2015 Link to this post

    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!
  3. Maria
    Maria avatar
    15 posts
    Member since:
    Oct 2011

    Posted 10 Dec 2015 in reply to Cody Link to this post

    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

  4. Cody
    Admin
    Cody avatar
    3360 posts

    Posted 10 Dec 2015 Link to this post

    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!
  5. Caleb
    Caleb avatar
    5 posts
    Member since:
    Nov 2015

    Posted 17 Dec 2015 in reply to Cody Link to this post

    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

Back to Top