예제 #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"));
 }
예제 #2
0
파일: GitHub1650.cs 프로젝트: gywerd/CPUI
        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");
        }
예제 #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);
        }
예제 #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);
        }
예제 #5
0
파일: Issue2272.cs 프로젝트: zmtzawqlp/maui
        void PressEnter()
        {
            var androidApp = RunningApp as AndroidApp;

            if (androidApp != null)
            {
                androidApp.PressUserAction(UserAction.Done);
            }
            else
            {
                RunningApp.PressEnter();
            }
        }
예제 #6
0
        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.");
        }