Esempio n. 1
0
        public void CellsGalleryEntryCellCompleted()
        {
            SelectTest("EntryCell Table");

            App.WaitForElement(q => q.Marked("Text 2"), "Timeout : Text 2");

            App.Screenshot("At EntryCell Table Gallery");

            string target = "Enter text";

#if __WINDOWS__
            App.ScrollDownTo(target, CellTestContainerId, timeout: TimeSpan.FromMinutes(1));
#else
            App.ScrollForElement($"* marked:'{target}'",
                                 new Drag(ScreenBounds, Drag.Direction.BottomToTop, Drag.DragLength.Medium));
#endif

            App.WaitForElement(q => q.Marked(target));

            App.Screenshot("Before clicking Entry");

#if !__IOS__ && !__WINDOWS__
            App.Tap(PlatformQueries.EntryCellWithPlaceholder("I am a placeholder"));
            App.EnterText(PlatformQueries.EntryCellWithPlaceholder("I am a placeholder"), "Hi");
            App.Screenshot("Entered Text");
            App.PressEnter();

            App.WaitForElement(q => q.Marked("Entered: 1"));
            App.Screenshot("Completed should have changed label's text");
#endif
        }
Esempio n. 2
0
        public void CellsGalleryEntryCellCompleted()
        {
            App.ScrollForElement("* marked:'EntryCell Table'", new Drag(ScreenBounds, Drag.Direction.BottomToTop, Drag.DragLength.Medium));

            App.Tap(q => q.Marked("EntryCell Table"));
            App.WaitForElement(q => q.Marked("Text 2"), "Timeout : Text 2");

            App.Screenshot("At EntryCell Table Gallery");
            App.ScrollForElement("* marked:'Enter text'", new Drag(ScreenBounds, Drag.Direction.BottomToTop, Drag.DragLength.Medium));

            App.Screenshot("Before clicking Entry");

            App.Tap(PlatformQueries.EntryCellWithPlaceholder("I am a placeholder"));
            App.EnterText(PlatformQueries.EntryCellWithPlaceholder("I am a placeholder"), "Hi");
            App.Screenshot("Entered Text");
            if (App is AndroidApp)
            {
                ((AndroidApp)App).PressUserAction(UserAction.Done);
            }
            else
            {
                App.PressEnter();
            }
            App.WaitForElement(q => q.Marked("Entered: 1"));
            App.Screenshot("Completed should have changed label's text");
        }
Esempio n. 3
0
 public static Func <AppQuery, AppQuery> EntryCellWithText(string placeholder)
 {
     return(PlatformQueries.EntryCellWithText(placeholder));
 }