Exemple #1
0
        public void EnterText()
        {
            var textInput = "Hello World";

            FirstPage.EnterText(textInput);
            FirstPage.ClickGo();
            FirstPage.WaitForNoActivityIndicator();

            Assert.AreEqual(FirstPage.GetEntryFieldText(), textInput);
        }
Exemple #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);
        }