public void FillChangePasswordForm(string oldPassword, string newPassword, string retypeNewPassword)
 {
     OldPassword.SendKeys(oldPassword);             // Eski parolayı doldurur.
     NewPassword.SendKeys(newPassword);             // Yeni parolayı doldurur.
     RetypeNewPassword.SendKeys(retypeNewPassword); // Yeni parolayı tekrar doldurur.
     ChangeButton.Click();                          // "Şifre Değiştir" butonuna tıklar.
 }
Exemple #2
0
 public void RevertName()
 {
     Account.Click();
     PersonalInfo.Click();
     Thread.Sleep(2000);
     FirstName.Clear();
     FirstName.SendKeys("Test");
     OldPassword.SendKeys("testing");
     Save.Click();
     Assert.AreEqual("Your personal information has been successfully updated.", message.Text.ToString());
 }
Exemple #3
0
 public void SuccessfullPasswordChange()
 {
     NavigateTo();
     OldPassword.Clear();
     OldPassword.SendKeys("1234");
     NewPassword.Clear();
     NewPassword.SendKeys("123456");
     ConfirmPassword.Clear();
     ConfirmPassword.SendKeys("123456");
     ChangePasswordButton.Click();
 }
Exemple #4
0
 public void EnterMissmatchingNewPassword()
 {
     NavigateTo();
     OldPassword.Clear();
     OldPassword.SendKeys("1234");
     NewPassword.Clear();
     NewPassword.SendKeys("123456");
     ConfirmPassword.Clear();
     ConfirmPassword.SendKeys("12345");
     ChangePasswordButton.Click();
 }
Exemple #5
0
 public void EnterIncorrectCurrentPasswordChange()
 {
     NavigateTo();
     OldPassword.Clear();
     OldPassword.SendKeys("12345");
     NewPassword.Clear();
     NewPassword.SendKeys("123456");
     ConfirmPassword.Clear();
     ConfirmPassword.SendKeys("123456");
     ChangePasswordButton.Click();
 }
 public void ChangePasswordForm(ActiveUser user)
 {
     OldPassword.SendKeys(user.CurrentPassword);
     NewPassword.SendKeys(user.NewPassword);
     ConfirmPassword.SendKeys(user.ConfirmPassword);
 }