Ejemplo n.º 1
0
        public void AddUsersToList_Firefox()
        {
            bool userExists = false;

            WebDriver.OpenBrowser("Firefox");
            WebDriver.NavigateToUrl("http://www.way2automation.com/angularjs-protractor/webtables/");

            Assert.IsTrue(UserTable.ValidateUserTableExist(), "User table not found");

            UserTable.AddUser(userTestData);

            userExists = UserTable.CheckIfUserIsAddedOnTheList(userTestData);

            Assert.IsTrue(userExists, "User is not on the list");

            if (userExists)
            {
                userRepository.AddUser(userTestData);
            }
        }