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
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