public void WhenILoginWithTheFollowingCredentials(Credential credentials)
        {
            LoginPage.GoTo();

            LoginPage.LoginAs(credentials.Username)
                .WithPassword(credentials.Password)
                .Login();
        }
        public void WhenISubmitTheFormToChangeMyPasswordUsingTheFollowingDetails(Credential credentials)
        {
            ChangePasswordPage.GoTo();

            ChangePasswordPage.ChangeOriginalPassword(credentials.OriginalPassword)
                .WithPassword(credentials.Newpassword)
                .ConfirmPassword(credentials.ConfirmPassword)
                .Change();
        }
        public void WhenILoginWithTheFollowingCredentialsTimes(int numberOfTimes, Credential credentials)
        {
            for (var count = 0; count < numberOfTimes; count++)
            {
                LoginPage.GoTo();

                LoginPage.LoginAs(credentials.Username)
                    .WithPassword(credentials.Password)
                    .Login();
            }
        }