Esempio n. 1
0
        public string GetExistingPassword()
        {
            var addANewUserPage = new AddAUserPage(GetDriver());

            addANewUserPage.Open();
            return(addANewUserPage.GetExistingPassword());
        }
        public void AddUser_WhenCall_UserCredentialsOnThePage(string login, string password)
        {
            _addAUserPage.Open();
            _addAUserPage.CreateNewUser(login, password);

            var loginFromPage    = _addAUserPage.GetExistingUsername();
            var passwordFromPage = _addAUserPage.GetExistingPassword();

            Assert.AreEqual(login, loginFromPage);
            Assert.AreEqual(password, passwordFromPage);
        }