public void BeforeEachTest ()
		{
			app = AppInitializer.StartApp (platform);
			app.Screenshot("App Initialized");

			FirstPage = new FirstPage(app, platform);
			ListViewPage = new ListViewPage(app, platform);
		}
        public void BeforeEachTest()
        {
            app = AppInitializer.StartApp(platform);
            app.Screenshot("App Initialized");

            FirstPage    = new FirstPage(app, platform);
            ListViewPage = new ListViewPage(app, platform);
        }
Esempio n. 3
0
        virtual public void BeforeEachTest()
        {
            app = AppInitializer.StartApp(platform);
            app.Screenshot("App Initialized");

            FirstPage         = new FirstPage(app, platform);
            ListViewPage      = new ListViewPage(app, platform);
            LoginPage         = new LoginPage(app, platform);
            NewUserSignUpPage = new NewUserSignUpPage(app, platform);
        }
Esempio n. 4
0
        public void SelectItemOnListViewByID()
        {
            var listItemNumber      = 9;
            var expectedAlertString = $"You Selected Number {listItemNumber}";

            FirstPage.ClickListViewButtonByID();
            ListViewPage.TapListItemNumber(listItemNumber);

            Assert.AreEqual(expectedAlertString, ListViewPage.GetAlertText(listItemNumber));
        }
Esempio n. 5
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);
        }
Esempio n. 6
0
        public void EnterText()
        {
            var textInput = "Hello World";

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

            Assert.AreEqual(FirstPage.GetEntryFieldText(), textInput);
        }
        public void CreateNewUserAndLogin()
        {
            //Arrange
            var username = _username;
            var password = "******";
            var expectedFirstPageTitle = "First Page";

            //Act
            LoginPage.PressSignUpButton();
            NewUserSignUpPage.CreateNewUserWithPassword(username, password);
            LoginPage.LoginWithUsernamePassword(username, password);

            //Assert
            var actualFirstPageTitle = FirstPage.GetTitle();

            Assert.AreEqual(expectedFirstPageTitle, actualFirstPageTitle);
        }
Esempio n. 8
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);
        }