Hello,
I have RadSlider control with minimum and maximum values, and i'm trying to use DragToTick method but Test Studio returns me an error:
ArtOfTest.Common.Exceptions.FindElementException: Element Not found!
FindExpression used:
[name 'Exact' HorizontalRangeEndThumb]
Also, i tried to to execute the following coded steps against your demo page with RadSlider control but got the same error as for mine coded step.
Site link: http://demos.telerik.com/silverlight/#Slider/Ticks
Coded Steps:
Telerik.WebAii.Controls.Xaml.RadSlider mySlider = Pages.TelerikSliderForSilverlight.SilverlightApp.Find.ByAutomationId<Telerik.WebAii.Controls.Xaml.RadSlider>("rangeSlider");
mySlider.User.HoverOver();
//Thumb RangeMidle = severitySlider.Find.ByAutomationId<Thumb>("RangeMidleThumb");
mySlider.DragToTick (ThumbName.EndThumb, 2);
Error:
Exception thrown executing coded step: '[Performance_Categories_CodedStep8] : DragToTick - Telerik Demo'.
InnerException:
ArtOfTest.Common.Exceptions.FindElementException: Element Not found!
FindExpression used:
[name 'Exact' HorizontalRangeEndThumb]
at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo, Object target)
at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout, WaitResultType errorResultType)
at ArtOfTest.WebAii.Silverlight.VisualWait.ForExistsInternal(Int32 timeout, Boolean invertCondition)
at ArtOfTest.WebAii.Silverlight.VisualWait.ForVisible(Int32 timeout)
at ArtOfTest.WebAii.Silverlight.VisualFind.ReturnOrThrow(FrameworkElement e, String throwMessage)
at ArtOfTest.WebAii.Silverlight.VisualFind.ByName(String name)
at Telerik.WebAii.Controls.Xaml.RadSlider.get_HorizontalRangeEndThumb()
at Telerik.WebAii.Controls.Xaml.RadSlider.DragToTick(ThumbName thumbName, Int32 tickIndex)
Could you help me please to fix that issue?
Thanks,
Max
I have RadSlider control with minimum and maximum values, and i'm trying to use DragToTick method but Test Studio returns me an error:
ArtOfTest.Common.Exceptions.FindElementException: Element Not found!
FindExpression used:
[name 'Exact' HorizontalRangeEndThumb]
Also, i tried to to execute the following coded steps against your demo page with RadSlider control but got the same error as for mine coded step.
Site link: http://demos.telerik.com/silverlight/#Slider/Ticks
Coded Steps:
Telerik.WebAii.Controls.Xaml.RadSlider mySlider = Pages.TelerikSliderForSilverlight.SilverlightApp.Find.ByAutomationId<Telerik.WebAii.Controls.Xaml.RadSlider>("rangeSlider");
mySlider.User.HoverOver();
//Thumb RangeMidle = severitySlider.Find.ByAutomationId<Thumb>("RangeMidleThumb");
mySlider.DragToTick (ThumbName.EndThumb, 2);
Error:
Exception thrown executing coded step: '[Performance_Categories_CodedStep8] : DragToTick - Telerik Demo'.
InnerException:
ArtOfTest.Common.Exceptions.FindElementException: Element Not found!
FindExpression used:
[name 'Exact' HorizontalRangeEndThumb]
at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo, Object target)
at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout, WaitResultType errorResultType)
at ArtOfTest.WebAii.Silverlight.VisualWait.ForExistsInternal(Int32 timeout, Boolean invertCondition)
at ArtOfTest.WebAii.Silverlight.VisualWait.ForVisible(Int32 timeout)
at ArtOfTest.WebAii.Silverlight.VisualFind.ReturnOrThrow(FrameworkElement e, String throwMessage)
at ArtOfTest.WebAii.Silverlight.VisualFind.ByName(String name)
at Telerik.WebAii.Controls.Xaml.RadSlider.get_HorizontalRangeEndThumb()
at Telerik.WebAii.Controls.Xaml.RadSlider.DragToTick(ThumbName thumbName, Int32 tickIndex)
Could you help me please to fix that issue?
Thanks,
Max