예제 #1
0
        public void EnterTextByID()
        {
            var textInput = "I used IDs to Enter this Text!";

            FirstPage.EnterTextByID(textInput);
            FirstPage.ClickGoByID();
            FirstPage.WaitForNoActivityIndicator();

            Assert.AreEqual(FirstPage.GetEntryFieldTextByID(), textInput);
        }
예제 #2
0
        public void RotateScreenAndEnterTextByID()
        {
            var entryTextLandcape = "The Screen Orientation Is Landscape";
            var entryTextPortrait = "The Screen Orientation Is Portrait";

            FirstPage.RotateScreenToLandscape();
            FirstPage.EnterText(entryTextLandcape);
            FirstPage.ClickGoByID();
            FirstPage.WaitForNoActivityIndicator();

            Assert.AreEqual(FirstPage.GetEntryFieldTextByID(), entryTextLandcape);

            FirstPage.RotateScreenToPortrait();
            FirstPage.EnterText(entryTextPortrait);
            FirstPage.ClickGoByID();
            FirstPage.WaitForNoActivityIndicator();

            Assert.AreEqual(FirstPage.GetEntryFieldTextByID(), entryTextPortrait);
        }