Ejemplo n.º 1
0
        public void LongClickFiresOnCustomImageRenderer()
        {
            RunningApp.WaitForElement(ImageId);
            RunningApp.TouchAndHold(ImageId);

            // ???
        }
Ejemplo n.º 2
0
        public void Bugzilla30317ItemSourceTabbedPage()
        {
            RunningApp.WaitForElement(q => q.Marked("GoToPageTwoButton"));
            RunningApp.Tap(q => q.Marked("GoToPageTwoButton"));

            RunningApp.Screenshot("I see Page 2");
            RunningApp.WaitForElement(q => q.Marked("PageTwo"));

            RunningApp.WaitForElement(q => q.Marked("GoToPageThreeButton"));
            RunningApp.Tap(q => q.Marked("GoToPageThreeButton"));

            RunningApp.Screenshot("I see TabbedPage One");
            RunningApp.WaitForElement(q => q.Marked("TabOneCtor"));

            RunningApp.WaitForElement(q => q.Marked("PageThreeTabOneItem1"));
            RunningApp.TouchAndHold(q => q.Marked("PageThreeTabOneItem1"));
            RunningApp.WaitForElement(q => q.Marked("PageThreeTabOneItem1"));

            RunningApp.WaitForElement(q => q.Marked("PageThreeTabOneItem5"));
            RunningApp.TouchAndHold(q => q.Marked("PageThreeTabOneItem5"));
            RunningApp.WaitForElement(q => q.Marked("PageThreeTabOneItem5"));

            RunningApp.Screenshot("I see TabbedPage Two");
            RunningApp.WaitForElement(q => q.Marked("TabTwoOnAppearing"));
            RunningApp.Tap(q => q.Marked("TabTwoOnAppearing"));

            RunningApp.WaitForElement(q => q.Marked("PageThreeTabTwoItem1"));
            RunningApp.TouchAndHold(q => q.Marked("PageThreeTabTwoItem1"));
            RunningApp.WaitForElement(q => q.Marked("PageThreeTabTwoItem1"));

            RunningApp.WaitForElement(q => q.Marked("PageThreeTabTwoItem5"));
            RunningApp.TouchAndHold(q => q.Marked("PageThreeTabTwoItem5"));
            RunningApp.WaitForElement(q => q.Marked("PageThreeTabTwoItem5"));
        }
Ejemplo n.º 3
0
 public void ContextMenuShowsUpWhenPressAndHoldTextOnEditorAndEntryField()
 {
     RunningApp.TouchAndHold("PressEditor");
     TestForPopup();
     RunningApp.Tap("PressEntry");
     RunningApp.TouchAndHold("PressEntry");
     TestForPopup();
 }
Ejemplo n.º 4
0
 public void Issue2981Test()
 {
     RunningApp.Screenshot("I am at Issue 1");
     RunningApp.TouchAndHold(q => q.Marked("Cell1"));
     RunningApp.Screenshot("Long Press first cell");
     RunningApp.TouchAndHold(q => q.Marked("Cell2"));
     RunningApp.Screenshot("Long Press second cell");
 }
Ejemplo n.º 5
0
        public void Issue2794Test()
        {
            RunningApp.TouchAndHold(x => x.Marked("Cell2"));
            RunningApp.Tap(x => x.Text("Delete me first"));
            RunningApp.WaitForNoElement(q => q.Marked("Cell2"));

            RunningApp.TouchAndHold(x => x.Marked("Cell1"));
            RunningApp.Tap(x => x.Text("Delete me after"));
            RunningApp.WaitForNoElement(q => q.Marked("Cell1"));
        }
Ejemplo n.º 6
0
        public void Bugzilla45027Test()
        {
            var firstItemList = List.First().ToString();

            RunningApp.WaitForElement(q => q.Marked(firstItemList));

            RunningApp.TouchAndHold(q => q.Marked(firstItemList));
            RunningApp.WaitForElement(q => q.Marked(BUTTON_ACTION_TEXT));
            RunningApp.DoubleTap(q => q.Marked(BUTTON_ACTION_TEXT));

            RunningApp.TouchAndHold(q => q.Marked(firstItemList));
            RunningApp.WaitForElement(q => q.Marked(BUTTON_DELETE_TEXT));
            RunningApp.DoubleTap(q => q.Marked(BUTTON_DELETE_TEXT));
        }
Ejemplo n.º 7
0
        public void Bugzilla30317ItemSourceOnAppearingContentPage()
        {
            RunningApp.Screenshot("I am at Bugzilla30317");
            RunningApp.WaitForElement(q => q.Marked("PageOne"));
            RunningApp.Screenshot("I see Page 1");

            RunningApp.WaitForElement(q => q.Marked("PageOneItem1"));
            RunningApp.TouchAndHold(q => q.Marked("PageOneItem1"));

            RunningApp.WaitForElement(q => q.Marked("PageOneItem5"));
            RunningApp.TouchAndHold(q => q.Marked("PageOneItem5"));

            RunningApp.Screenshot("I did not crash");
        }
Ejemplo n.º 8
0
        public void SingleTapOnCellDoesNotActivateContext()
        {
            RunningApp.WaitForElement(Action);

            RunningApp.Tap(Action);
            RunningApp.WaitForElement(ActionItemTapped);

            // Tapping the part of the cell without a tap gesture should *not* display the context action
            RunningApp.Tap(CellItem);
            RunningApp.WaitForNoElement("Context Action");

            // But a Long Press *should* still display the context action
            RunningApp.TouchAndHold(CellItem);
            RunningApp.WaitForElement("Context Action");
        }
Ejemplo n.º 9
0
        public void Bugzilla34561Test()
        {
            RunningApp.WaitForElement(q => q.Marked("ListViewItem"));

#if __IOS__
            var listItem = RunningApp.Query(q => q.Marked("ListViewItem"))[0].Rect;
            RunningApp.DragCoordinates(listItem.CenterX, listItem.CenterY, 0, listItem.CenterY);
#else
            RunningApp.TouchAndHold(q => q.Marked("ListViewItem"));
#endif

            RunningApp.WaitForElement(q => q.Marked("Click"));
            RunningApp.Tap(q => q.Marked("Click"));
            RunningApp.WaitForElement(q => q.Marked("NextPageLabel"));
            RunningApp.Screenshot("I see the next page");
        }
Ejemplo n.º 10
0
        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.");
        }
Ejemplo n.º 11
0
        public void Bugzilla30317ItemSourceCtorContentPage()
        {
            RunningApp.WaitForElement(q => q.Marked("GoToPageTwoButton"));
            RunningApp.Tap(q => q.Marked("GoToPageTwoButton"));

            RunningApp.WaitForElement(q => q.Marked("PageTwo"));
            RunningApp.Screenshot("I see Page 2");

            RunningApp.WaitForElement(q => q.Marked("PageTwoItem1"));
            RunningApp.TouchAndHold(q => q.Marked("PageTwoItem1"));

            RunningApp.WaitForElement(q => q.Marked("PageTwoItem5"));
            RunningApp.TouchAndHold(q => q.Marked("PageTwoItem5"));

            RunningApp.Screenshot("I did not crash");
        }
Ejemplo n.º 12
0
        public void Bugzilla30317ItemSourceTabbedPage()
        {
            if (RunningApp is AndroidApp)
            {
                RunningApp.WaitForElement(q => q.Marked("GoToPageTwoButton"));
                RunningApp.Tap(q => q.Marked("GoToPageTwoButton"));

                RunningApp.Screenshot("I see Page 2");
                RunningApp.WaitForElement(q => q.Marked("PageTwo"));

                RunningApp.WaitForElement(q => q.Marked("GoToPageThreeButton"));
                RunningApp.Tap(q => q.Marked("GoToPageThreeButton"));

                RunningApp.Screenshot("I see TabbedPage One");
                RunningApp.WaitForElement(q => q.Marked("TabOneCtor"));

                RunningApp.WaitForElement(q => q.Marked("PageThreeTabOneItem1"));
                RunningApp.TouchAndHold(q => q.Marked("PageThreeTabOneItem1"));
                RunningApp.WaitForElement(q => q.Marked("PageThreeTabOneItem1"));

                RunningApp.WaitForElement(q => q.Marked("PageThreeTabOneItem5"));
                RunningApp.TouchAndHold(q => q.Marked("PageThreeTabOneItem5"));
                RunningApp.WaitForElement(q => q.Marked("PageThreeTabOneItem5"));

                RunningApp.Screenshot("I see TabbedPage Two");
                RunningApp.WaitForElement(q => q.Marked("TabTwoOnAppearing"));
                RunningApp.Tap(q => q.Marked("TabTwoOnAppearing"));

                RunningApp.WaitForElement(q => q.Marked("PageThreeTabTwoItem1"));
                RunningApp.TouchAndHold(q => q.Marked("PageThreeTabTwoItem1"));
                RunningApp.WaitForElement(q => q.Marked("PageThreeTabTwoItem1"));

                RunningApp.WaitForElement(q => q.Marked("PageThreeTabTwoItem5"));
                RunningApp.TouchAndHold(q => q.Marked("PageThreeTabTwoItem5"));
                RunningApp.WaitForElement(q => q.Marked("PageThreeTabTwoItem5"));
            }
            else
            {
                Assert.Inconclusive("Not run on iOS");
            }
        }
Ejemplo n.º 13
0
        public void Bugzilla30317ItemSourceOnAppearingContentPage()
        {
            if (RunningApp is AndroidApp)
            {
                RunningApp.Screenshot("I am at Bugzilla30317");
                RunningApp.WaitForElement(q => q.Marked("PageOne"));
                RunningApp.Screenshot("I see Page 1");

                RunningApp.WaitForElement(q => q.Marked("PageOneItem1"));
                RunningApp.TouchAndHold(q => q.Marked("PageOneItem1"));

                RunningApp.WaitForElement(q => q.Marked("PageOneItem5"));
                RunningApp.TouchAndHold(q => q.Marked("PageOneItem5"));

                RunningApp.Screenshot("I did not crash");
            }
            else
            {
                Assert.Inconclusive("Not run on iOS");
            }
        }
Ejemplo n.º 14
0
        public void RefreshContextActions()
        {
            RunningApp.WaitForElement("Cell 1");
            RunningApp.Screenshot("I am at Issue 1455");
            RunningApp.TouchAndHold(q => q.Marked("Cell 4"));
            RunningApp.Screenshot("Long Press Cell 4 to show context actions");
            RunningApp.Tap(q => q.Marked("Cell 5"));
            RunningApp.Screenshot("Clicked another cell and changed menu items");

            Assert.AreEqual(1, RunningApp.Query(c => c.Marked("Hendrerit")).Length);

            RunningApp.Back();

            RunningApp.WaitForElement("Toggle LegacyMode");
            RunningApp.Tap(q => q.Marked("Toggle LegacyMode"));

            RunningApp.TouchAndHold(q => q.Marked("Cell 4"));
            RunningApp.Screenshot("Long Press Cell 4 to show context actions");
            RunningApp.Tap(q => q.Marked("Cell 5"));
            RunningApp.Screenshot("Clicked another cell and changed menu items");

            Assert.AreEqual(1, RunningApp.Query(c => c.Marked("Vestibulum")).Length);
        }
Ejemplo n.º 15
0
        public void Bugzilla30317ItemSourceCtorContentPage()
        {
            if (RunningApp is AndroidApp)
            {
                RunningApp.WaitForElement(q => q.Marked("GoToPageTwoButton"));
                RunningApp.Tap(q => q.Marked("GoToPageTwoButton"));

                RunningApp.WaitForElement(q => q.Marked("PageTwo"));
                RunningApp.Screenshot("I see Page 2");

                RunningApp.WaitForElement(q => q.Marked("PageTwoItem1"));
                RunningApp.TouchAndHold(q => q.Marked("PageTwoItem1"));

                RunningApp.WaitForElement(q => q.Marked("PageTwoItem5"));
                RunningApp.TouchAndHold(q => q.Marked("PageTwoItem5"));

                RunningApp.Screenshot("I did not crash");
            }
            else
            {
                Assert.Inconclusive("Not run on iOS");
            }
        }
Ejemplo n.º 16
0
 public void ListViewDoesNotCrashOnTextEntryHeaderOrFooterLongClick()
 {
     RunningApp.TouchAndHold(x => x.Marked("Header"));
     RunningApp.TouchAndHold(x => x.Marked("Footer"));
 }
Ejemplo n.º 17
0
 public void Bugzilla44338Test()
 {
     RunningApp.TouchAndHold(Items.First());
     RunningApp.Tap(Items.Last());
 }
Ejemplo n.º 18
0
 public void Issue3320TextTapAndHoldSelectsRow()
 {
     RunningApp.TouchAndHold(q => q.Marked("ListItem:5"));
     RunningApp.Screenshot("TouchAndHold-ItemIsSelected");
 }