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

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

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