Scrolling does not work on iPhone simulator

brijmitchellbrijmitchell USMember ✭✭

I am trying to run a test that scrolls down to a particular object.

I am using the scrolldownto() method which works perfectly on Andriod

However, on an iPhone simulator, i am getting the following error

app.ScrollDownTo("Onion Rings")

Scrolling down to Marked("Onion Rings") Error while performing ScrollDownTo(Marked("Onion Rings"), 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(Marked("Onion Rings"), null, Auto, 0.67, 500, True, null)

Sign In or Register to comment.