示例#1
0
        virtual public void BeforeEachTest()
        {
            app = AppInitializer.StartApp(platform);
            app.Screenshot("App Launched");

            LoginPage = new LoginPage(app, platform);
            FirstPage = new FirstPage(app, platform);
        }
示例#2
0
        public void SuccessfulLoginTest()
        {
            //Arrange
            var username = _username;
            var password = _password;
            var expectedFirstPageTitle = "Vista Africa Brand Header";

            //Act
            LoginPage.EnterUsername(username);
            LoginPage.EnterPassword(password);
            LoginPage.TapLoginButton();

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

            Assert.AreEqual(expectedFirstPageTitle, actualFirstPageTitle);
        }