void ScrollListInPage(string tabName) { RunningApp.WaitForElement(tabName); RunningApp.Tap(tabName); RunningApp.ScrollDownTo(Cell, ListMain, ScrollStrategy.Programmatically, 0.7, timeout: TimeSpan.FromMinutes(1)); RunningApp.ScrollUpTo("California #1", ListMain, ScrollStrategy.Programmatically, 0.7, timeout: TimeSpan.FromMinutes(1)); }
public void ContextActionsScrollNRE() { RunningApp.TouchAndHold(q => q.Marked("Item #0")); RunningApp.WaitForElement(q => q.Marked("Test Item")); int counter = 0; while (counter < 5) { RunningApp.ScrollDownTo("Item #15", "mainList", ScrollStrategy.Gesture, timeout: TimeSpan.FromMinutes(1)); RunningApp.ScrollUpTo("Item #0", "mainList", ScrollStrategy.Gesture, timeout: TimeSpan.FromMinutes(1)); counter++; } RunningApp.Screenshot("If the app did not crash, then the test has passed."); }
public void FrameSizeGetsCorruptedWhenListViewIsScrolled() { RunningApp.WaitForElement(StartText1); var start = GetLabels(RunningApp, StartText1); var smalls = GetLabels(RunningApp, SmallText1); var bigs = GetLabels(RunningApp, BigText1); RunningApp.ScrollDownTo(EndText1, List1, ScrollStrategy.Gesture, 0.9, 15000, timeout: TimeSpan.FromMinutes(1)); RunningApp.ScrollUpTo(StartText1, List1, ScrollStrategy.Gesture, 0.9, 15000, timeout: TimeSpan.FromMinutes(1)); var startAfter = GetLabels(RunningApp, StartText1); Assert.IsTrue(RectIsEquals(start, startAfter)); var smallAfter = GetLabels(RunningApp, SmallText1); Assert.IsTrue(RectIsEquals(smalls, smallAfter)); var bigAfter = GetLabels(RunningApp, BigText1); Assert.IsTrue(RectIsEquals(bigs, bigAfter)); // list2 with ListViewCachingStrategy.RecycleElement - issue 6297 RunningApp.WaitForElement(StartText2); start = GetLabels(RunningApp, StartText2); smalls = GetLabels(RunningApp, SmallText2); bigs = GetLabels(RunningApp, BigText2); RunningApp.ScrollDownTo(EndText2, List2, ScrollStrategy.Gesture, 0.9, 15000, timeout: TimeSpan.FromMinutes(1)); RunningApp.ScrollUpTo(StartText2, List2, ScrollStrategy.Gesture, 0.9, 15000, timeout: TimeSpan.FromMinutes(1)); startAfter = GetLabels(RunningApp, StartText2); Assert.IsTrue(RectIsEquals(start, startAfter)); smallAfter = GetLabels(RunningApp, SmallText2); Assert.IsTrue(RectIsEquals(smalls, smallAfter)); bigAfter = GetLabels(RunningApp, BigText2); Assert.IsTrue(RectIsEquals(bigs, bigAfter)); }