Exemplo n.º 1
0
        public void ValidPasswordChange()
        {
            ManagePage.ManageAccountButton.Click();
            ManagePage.PasswordChangeButton.Click();
            var user = AccessExcelData.GetTestData <ManagePageUserModel>("RegisterPageData.xlsx", "DataSet2", "ValidPasswordChange");

            ManagePage.FillChangePasswordForm(user);
            ManagePage.AssertConfirmPasswordMessage("Your password has been changed.");
            //reverse password to previous one for other tests usage
            ManagePage.PasswordChangeButton.Click();
            user = AccessExcelData.GetTestData <ManagePageUserModel>("RegisterPageData.xlsx", "DataSet2", "ValidPasswordChangeReset");
            ManagePage.FillChangePasswordForm(user);
            ManagePage.LogoutBtnAsUser.Click();
        }