public void Issue9306SwipeViewCloseSwiping() { RunningApp.WaitForElement(x => x.Marked(SwipeViewId)); RunningApp.SwipeLeftToRight(SwipeViewId); RunningApp.SwipeRightToLeft(SwipeViewId); RunningApp.SwipeLeftToRight(SwipeViewId); RunningApp.Tap(SwipeItemId); RunningApp.WaitFor( () => RunningApp.Query(x => x.Marked(LeftCountLabelId)).FirstOrDefault()?.Text == "1", "Swipe to close and open again failed!."); }
public void Issue9088SwipeViewConfictWithShellMenuSwipeInFromLeft() { RunningApp.WaitForElement(x => x.Marked(SwipeViewId)); RunningApp.SwipeRightToLeft(SwipeViewId); RunningApp.WaitFor( () => RunningApp.Query(x => x.Marked(LeftCountLabelId)).FirstOrDefault()?.Text == "1", "Swipe left failed at 1. swipe with speed 500"); RunningApp.SwipeRightToLeft(SwipeViewId, 0.67, 250); RunningApp.WaitFor( () => RunningApp.Query(x => x.Marked(LeftCountLabelId)).FirstOrDefault()?.Text == "2", "Swipe left failed at 2. swipe with speed 250"); RunningApp.SwipeRightToLeft(SwipeViewId, 0.67, 100); RunningApp.WaitFor( () => RunningApp.Query(x => x.Marked(LeftCountLabelId)).FirstOrDefault()?.Text == "3", "Swipe left failed at 3. swipe with speed 100"); RunningApp.SwipeLeftToRight(SwipeViewId, 0.67, 100); RunningApp.WaitFor( () => RunningApp.Query(x => x.Marked(RightCountLabelId)).FirstOrDefault()?.Text == "1", "Swipe right failed at 1. swipe with speed 100"); RunningApp.SwipeLeftToRight(SwipeViewId, 0.67, 250); RunningApp.WaitFor( () => RunningApp.Query(x => x.Marked(RightCountLabelId)).FirstOrDefault()?.Text == "2", "Swipe right failed at 2. swipe with speed 250"); RunningApp.SwipeLeftToRight(SwipeViewId, 0.67, 500); RunningApp.WaitFor( () => RunningApp.Query(x => x.Marked(RightCountLabelId)).FirstOrDefault()?.Text == "3", "Swipe right failed at 3. swipe with speed 500"); RunningApp.SwipeRightToLeft(SwipeViewId); RunningApp.WaitFor( () => RunningApp.Query(x => x.Marked(LeftCountLabelId)).FirstOrDefault()?.Text == "4", "Swipe left failed at 4. swipe with speed 500"); RunningApp.SwipeLeftToRight(SwipeViewId); RunningApp.WaitFor( () => RunningApp.Query(x => x.Marked(RightCountLabelId)).FirstOrDefault()?.Text == "4", "Swipe right failed at 4. swipe with speed 500"); RunningApp.SwipeRightToLeft(SwipeViewId); RunningApp.WaitFor( () => RunningApp.Query(x => x.Marked(LeftCountLabelId)).FirstOrDefault()?.Text == "5", "Swipe left failed at 4. swipe with speed 500"); RunningApp.SwipeLeftToRight(SwipeViewId); RunningApp.WaitFor( () => RunningApp.Query(x => x.Marked(RightCountLabelId)).FirstOrDefault()?.Text == "5", "Swipe right failed at 4. swipe with speed 500"); RunningApp.SwipeLeftToRight(SwipeViewId); RunningApp.WaitFor( () => RunningApp.Query(x => x.Marked(RightCountLabelId)).FirstOrDefault()?.Text == "6", "Swipe right failed at 4. swipe with speed 500"); RunningApp.SwipeRightToLeft(SwipeViewId); RunningApp.WaitFor( () => RunningApp.Query(x => x.Marked(LeftCountLabelId)).FirstOrDefault()?.Text == "6", "Swipe left failed at 4. swipe with speed 500"); }