// To enter labels of change password textfields [TC-01] [Pass]
  @Test(groups = "Module4", priority = 1)
  public void testChangePasswordAccountPage() throws Exception {
    // >>>>>> Data Provider <<<<<<<< //
    String userName = ExcelReader.getValue("UserName");
    String passWord = ExcelReader.getValue("Password");

    // >>>>>> Methods <<<<<<< //
    LoginPage loginPage = new LoginPage();
    ChangePasswordPage changePassword = new ChangePasswordPage();
    loginPage.gotoLoginOrRegisterMenu(driver);
    loginPage.clickAlreadyRegisteredLink(driver);
    loginPage.loginToTrendInAccount(driver, userName, passWord);
    loginPage.gotoMyAccountPage(driver);
    changePassword.gotoChangePasswordPageAndValidate(driver, userName);
  }
  // To verify the valid values for change password textfields[TC-02][Pass]
  @Test(groups = "Module4", priority = 2)
  public void testModifyOldPassword() throws Exception {
    // >>>>>> Data Provider <<<<<<<< //
    String userName = ExcelReader.getValue("UserName");
    String passWord = ExcelReader.getValue("Password");
    String oldPassword = ExcelReader.getValue("OldPasswordValue");
    String newPassword = ExcelReader.getValue("NewPasswordValue");
    String confirmPassword = ExcelReader.getValue("ConfirmPassword");
    String passwordChangeSuccessMessage = "Password Successfully Changed !!";

    // >>>>>> Methods <<<<<<< //
    LoginPage loginPage = new LoginPage();
    ChangePasswordPage changePassword = new ChangePasswordPage();
    loginPage.gotoLoginOrRegisterMenu(driver);
    loginPage.clickAlreadyRegisteredLink(driver);
    loginPage.loginToTrendInAccount(driver, userName, passWord);
    loginPage.gotoMyAccountPage(driver);
    changePassword.gotoChangePasswordPageAndValidate(driver, userName);
    changePassword.verifyChangePasswordFunctionality(
        driver, oldPassword, newPassword, confirmPassword, passwordChangeSuccessMessage);
  }
  // To verfiy the validation message when user enter invalid data in all the textfield of change
  // password page[TC-5]
  @Test(groups = "Module4", priority = 5)
  public void testValidateErrorMessageForAllFieldsBlankValues() throws Exception {
    // >>>>>> Data Provider <<<<<<<< //
    String userName = ExcelReader.getValue("UserName");
    String passWord = ExcelReader.getValue("Password");
    String oldPassword = ExcelReader.getValue("OldPasswordValue_Blank");
    String newPassword = ExcelReader.getValue("NewPasswordValue_Blank");
    String confirmPassword = ExcelReader.getValue("ConfirmPassword_Blank");
    String oldPasswordBlank = ExcelReader.getValue("OldPassword_Blank_Error");
    String newPasswordBlank = ExcelReader.getValue("NewPassword_Blank_Error");
    String confirmPassBlank = ExcelReader.getValue("ConfirmPassword_Blank_Error");
    String errorMessages[] = {oldPasswordBlank, newPasswordBlank, confirmPassBlank};

    // >>>>>> Methods <<<<<<< //
    LoginPage loginPage = new LoginPage();
    ChangePasswordPage changePassword = new ChangePasswordPage();
    loginPage.gotoLoginOrRegisterMenu(driver);
    loginPage.clickAlreadyRegisteredLink(driver);
    loginPage.loginToTrendInAccount(driver, userName, passWord);
    loginPage.gotoMyAccountPage(driver);
    changePassword.gotoChangePasswordPageAndValidate(driver, userName);
    changePassword.validateErrorMessageForChangePassword(
        driver, oldPassword, newPassword, confirmPassword, errorMessages);
  }
  // To verify that user should not be allowed when user enters the invalid values in old and
  // confirm password textfields[TC-7]
  @Test(groups = "Module4", priority = 7)
  public void testvalidateInvalidMismatchNewAndCofirmPasswordWithInvalidOldPass() throws Exception {
    // >>>>>> Data Provider <<<<<<<< //
    String userName = ExcelReader.getValue("UserName");
    String passWord = ExcelReader.getValue("Password");
    String oldPassword = ExcelReader.getValue("OldPasswordValue_InValid");
    String newPassword = ExcelReader.getValue("NewPasswordValue_Valid");
    String confirmPassword = ExcelReader.getValue("ConfirmPassword_NotMatch");
    String newPasswordsMismatch = ExcelReader.getValue("NewAndConfirmPassword_Mismatch_Error");
    String errorMessages[] = {newPasswordsMismatch};

    // >>>>>> Methods <<<<<<< //
    LoginPage loginPage = new LoginPage();
    ChangePasswordPage changePassword = new ChangePasswordPage();
    loginPage.gotoLoginOrRegisterMenu(driver);
    loginPage.clickAlreadyRegisteredLink(driver);
    loginPage.loginToTrendInAccount(driver, userName, passWord);
    loginPage.gotoMyAccountPage(driver);
    changePassword.gotoChangePasswordPageAndValidate(driver, userName);
    changePassword.validateErrorMessageForChangePassword(
        driver, oldPassword, newPassword, confirmPassword, errorMessages);
  }