Example #1
0
        public string GetExistingLogin()
        {
            var addANewUserPage = new AddAUserPage(GetDriver());

            addANewUserPage.Open();
            return(addANewUserPage.GetExistingUsername());
        }
        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);
        }