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

Problem finding Menu control in Playback

1 Answer 51 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Declan
Top achievements
Rank 1
Declan asked on 14 Nov 2011, 05:03 PM
When using SilverLightMenu.Library ( an opensource  menu control for Silverlight) , the recording of  a left-click on the menu appears to work.
However , on playback the menu item (which is actually a rectangle ) can not be found to be left-clicked in the test .
If however I hover over the menuitem while playback is running,the item is found and the left-click occurs.
 
[CodedStep(@"LeftClick on Item1Rectangle", RequiresSilverlight = true)]
        public void WebTest1_CodedStep2()
        {
          // LeftClick on Item1Rectangle
            Pages.SilverlightApplication.SilverlightApp.Item1Rectangle.User.Click(ArtOfTest.WebAii.Core.MouseClickType.LeftClick, 32, 50, ArtOfTest.Common.OffsetReference.TopLeftCorner, ArtOfTest.Common.ActionPointUnitType.Percentage, ((System.Windows.Forms.Keys)(0)));


        }

 Any idea? Thanks


1 Answer, 1 is accepted

Sort by
0
Anthony
Telerik team
answered on 16 Nov 2011, 06:50 PM
Hello Declan,

It sounds like you need to record a Mouse Hover step before the step that clicks the menu item. There's also a video of this process on Telerik TV.

Kind regards,
Anthony
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
Declan
Top achievements
Rank 1
Answers by
Anthony
Telerik team
Share this question
or