Beispiel #1
0
 public void Bugzilla29453Test()
 {
     RunningApp.Screenshot("I am at Issue Bugzilla29453");
     RunningApp.WaitForElement(q => q.Marked("Page 1"));
     RunningApp.Tap(q => q.Marked("btnGotoPage2"));
     RunningApp.Tap(q => q.Marked("entryText"));
     RunningApp.EnterText("XF");
     RunningApp.PressEnter();
     RunningApp.WaitForElement(q => q.Marked("Page 1"));
 }
Beispiel #2
0
        public void GitHub1650Test()
        {
            RunningApp.WaitForElement(q => q.Marked("CompletedTargetEntry"));
            RunningApp.Tap(q => q.Marked("CompletedTargetEntry"));

            Assert.AreEqual(0, _completedCount, "Completed should not have been fired");

            RunningApp.PressEnter();

            Assert.AreEqual(1, _completedCount, "Completed should have been fired once");
        }
Beispiel #3
0
        public string DateString(String format, String date)
        {
            RunningApp.ClearText("dateFormatString");
            RunningApp.EnterText("dateFormatString", format);
            RunningApp.PressEnter();
            RunningApp.ClearText("settingDate");
            RunningApp.EnterText("settingDate", date);
            RunningApp.PressEnter();
            var text = RunningApp.ReadDatePicker("dateCalendarOptions");

            return(text);
        }
Beispiel #4
0
        public string TimeString(String format, String time)
        {
            RunningApp.ClearText("timeFormatString");
            RunningApp.EnterText("timeFormatString", format);
            RunningApp.PressEnter();
            RunningApp.ClearText("settingTime");
            RunningApp.EnterText("settingTime", time);
            RunningApp.PressEnter();
            var text = RunningApp.ReadTimePicker("timeClockOptions");

            return(text);
        }
Beispiel #5
0
        void PressEnter()
        {
            var androidApp = RunningApp as AndroidApp;

            if (androidApp != null)
            {
                androidApp.PressUserAction(UserAction.Done);
            }
            else
            {
                RunningApp.PressEnter();
            }
        }
        public void SwappingEmptyViews()
        {
            RunningApp.WaitForElement("FilterItems");
            RunningApp.Tap("FilterItems");
            RunningApp.EnterText("abcdef");
            RunningApp.PressEnter();

            // Default empty view
            RunningApp.WaitForElement("Nothing to see here.");

            RunningApp.Tap("ToggleEmptyView");

            // Other empty view
            RunningApp.WaitForElement("No results matched your filter.");
        }