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")); }
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"); }
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); }
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); }
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."); }