public void TouchListener() { TapInFlyout(TouchListenerTitle); RunningApp.WaitForElement(TouchListenerSuccessId); RunningApp.SwipeLeftToRight(TouchListenerSuccessId); RunningApp.WaitForElement(TouchListenerSuccess); }
public void SwipeGesture() { TapInFlyout(SwipeTitle, usingSwipe: true); RunningApp.WaitForElement(SwipeGestureSuccessId); RunningApp.SwipeLeftToRight(SwipeGestureSuccessId); RunningApp.WaitForElement(SwipeGestureSuccess); }
void SwipePreviousItem(UITest.Queries.AppRect rect) { #if __ANDROID__ RunningApp.DragCoordinates(rect.X + 10, rect.Y, rect.X + rect.Width - 10, rect.Y); #else RunningApp.SwipeLeftToRight("carouseView"); #endif }
public void SwipeItemNoTextWindows() { RunningApp.WaitForElement(SwipeViewId); RunningApp.SwipeLeftToRight(SwipeViewId); RunningApp.Tap(SwipeViewId); RunningApp.WaitForElement(c => c.Marked("Success")); RunningApp.Screenshot("The test has passed"); }
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 Bugzilla44044Test() { RunningApp.WaitForElement(_btnToggleSwipe); RunningApp.SwipeRightToLeft(); RunningApp.WaitForNoElement(_btnToggleSwipe); RunningApp.WaitForElement(_btnDisplayAlert); RunningApp.SwipeLeftToRight(); RunningApp.WaitForNoElement(_btnDisplayAlert); RunningApp.WaitForElement(_btnToggleSwipe); RunningApp.Tap(_btnToggleSwipe); RunningApp.SwipeRightToLeft(); RunningApp.WaitForNoElement(_btnDisplayAlert); RunningApp.WaitForElement(_btnToggleSwipe); }
public void ShellSwipeToDismiss() { var pushButton = RunningApp.WaitForElement(ButtonId); Assert.AreEqual(1, pushButton.Length); RunningApp.Tap(ButtonId); var page2Layout = RunningApp.WaitForElement(LayoutId); Assert.AreEqual(1, page2Layout.Length); // Swipe in from left across 1/2 of screen width RunningApp.SwipeLeftToRight(LayoutId, 0.99, 500, false); // Swipe in from left across full screen width RunningApp.SwipeLeftToRight(0.99, 500); pushButton = RunningApp.WaitForElement(ButtonId); Assert.AreEqual(1, pushButton.Length); }
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"); }
public void GesturesTest() { RunningApp.WaitForElement(SuccessId); RunningApp.SwipeLeftToRight(SuccessId); RunningApp.WaitForElement(Success); }