ScrolldownTo() Not working on iOS simulator

brijmitchellbrijmitchell USMember ✭✭

I have a test that scrolls down to a number of items, this test passes in Andriod but I am getting the following error in iOS simulator.

app.ScrollDownTo(i => i.Text("Puddings")
app.ScrollDownTo(i => i.Text("Puddings")) Scrolling down to Text("Puddings")

Error while performing ScrollDownTo(Text("Puddings"), null, Auto, 0.67, 500, True, null)
Exception: System.Exception: Timeout before element was found
at Xamarin.UITest.iOS.iOSGestures.ScrollToInternal (System.Func1[TResult] toFound, Xamarin.UITest.Queries.AppQuery withinQuery, Xamarin.UITest.ScrollDirection direction, Xamarin.UITest.ScrollStrategy strategy, System.Double swipePercentage, System.Int32 swipeSpeed, System.Boolean withInertia, System.TimeSpan timeout) [0x0004b] in <4e019f0139bb4268a81c60c63691d2a5>:0 at Xamarin.UITest.iOS.iOSGestures.ScrollTo (Xamarin.UITest.Queries.AppQuery toQuery, Xamarin.UITest.Queries.AppQuery withinQuery, Xamarin.UITest.ScrollDirection direction, Xamarin.UITest.ScrollStrategy strategy, System.Double swipePercentage, System.Int32 swipeSpeed, System.Boolean withInertia, System.Nullable1[T] timeout) [0x0001d] in <4e019f0139bb4268a81c60c63691d2a5>:0
at Xamarin.UITest.SharedApp.ScrollDownTo (System.Func2[T,TResult] toQuery, System.Double swipePercentage, System.Int32 swipeSpeed, System.Func2[T,TResult] withinQuery, Xamarin.UITest.ScrollStrategy strategy, System.Boolean withInertia, System.Nullable`1[T] timeout) [0x00023] in <4e019f0139bb4268a81c60c63691d2a5>:0
at Xamarin.UITest.iOS.iOSApp+c__AnonStorey2E.<>m__0 () [0x00000] in <4e019f0139bb4268a81c60c63691d2a5>:0
at Xamarin.UITest.Utils.ErrorReporting.With (System.Action func, System.Object[] args, System.String memberName) [0x00006] in <4e019f0139bb4268a81c60c63691d2a5>:0
Exception: Error while performing ScrollDownTo(Text("Puddings"), null, Auto, 0.67, 500, True, null)

Sign In or Register to comment.