public void Register(string planType) { var d = new Data.AccountInfo(); EmailField.SendKeys(planType + d.Email); EmailConfirmField.SendKeys(planType + d.Email); UsernameField.SendKeys(planType + d.username); PasswordField.SendKeys(d.Password); ConfirmPasswordField.SendKeys(d.Password); SelectElement SecurityQuestionDrop = new SelectElement(SecurityQuestionDropdown); SecurityQuestionDrop.SelectByText(d.Securityselection); SecurityQuestionAnswer.SendKeys(d.Securityanswer); NextButton.Click(); if (this._driver.Url == @"https://betacustomeraccess.myfloridaprepaid.com/enrollment/accountowner.aspx") { Tests.successCount++; Console.WriteLine("User: "******" created]"); } else { Tests.failCount++; Console.WriteLine("[FAIL] [RUN #" + Tests.runCount + "]" + "[User: "******" not created]"); } }
public void ValidateNewInformation(UserDto user) { Helper.ScrollToSeeTheRightButton(_driver, SaveButton); OldPasswordField.Click(); var oldPasswordValue = user.GetType().GetRuntimeProperty("password").GetValue(user); if (oldPasswordValue != null) { OldPasswordField.SendKeys(oldPasswordValue.ToString()); } NewPasswordField.Click(); var newPasswordValue = user.GetType().GetRuntimeProperty("newPassword").GetValue(user); if (newPasswordValue != null) { NewPasswordField.SendKeys(newPasswordValue.ToString()); } ConfirmPasswordField.Click(); var confirmPasswordValue = user.GetType().GetRuntimeProperty("newPassword").GetValue(user); if (confirmPasswordValue != null) { ConfirmPasswordField.SendKeys(confirmPasswordValue.ToString()); } SaveButton.Click(); }
internal void UpdatePassword() { GlobalDefinitions.ExcelLib.PopulateInCollection(MarsResource.ExcelPath, "SignIn"); Thread.Sleep(5000); ClickOnGreeting.Click(); Thread.Sleep(1000); ChangePasswordLink.Click(); CurrentPasswordField.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "Current Password")); NewPasswordField.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "New Password")); ConfirmPasswordField.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "Confirm Password")); SaveButton.Click(); }
void ReleaseDesignerOutlets() { if (ButtonLogin != null) { ButtonLogin.Dispose(); ButtonLogin = null; } if (ConfirmPasswordField != null) { ConfirmPasswordField.Dispose(); ConfirmPasswordField = null; } if (ImageView != null) { ImageView.Dispose(); ImageView = null; } if (PasswordField != null) { PasswordField.Dispose(); PasswordField = null; } if (RegisterButton != null) { RegisterButton.Dispose(); RegisterButton = null; } if (ScrollView != null) { ScrollView.Dispose(); ScrollView = null; } if (UsernameField != null) { UsernameField.Dispose(); UsernameField = null; } if (ActivityIndicator != null) { ActivityIndicator.Dispose(); ActivityIndicator = null; } }
private void PasswordConfirmBtn_OnClick(object sender, RoutedEventArgs e) { if (ConfirmPasswordField.Password == TheTeacher.Password) { TheTeacher.SaveTodayAttendance(AttendingStudents, HomeWindow.CurrentClassCourse); PopulateDataGrid(); SetMessageText(Colors.DodgerBlue, "No Unsaved Attendances at the moment."); ConfirmPasswordPopup.IsOpen = false; ConfirmPasswordText.Text = "Confirm your Password to Save"; } else { ConfirmPasswordText.Text = "Incorrect Password"; } ConfirmPasswordField.Clear(); }
public void FillForm() { IsVisible(By.Id("ConfirmPasswordField")); ConfirmPasswordField.Clear(); SendData(ConfirmPasswordField, "1"); IsVisible(By.Id("EmailField")); EmailField.Clear(); SendData(EmailField, "1"); IsVisible(By.Id("FirstNameField")); FirstNameField.Clear(); SendData(FirstNameField, "1"); IsVisible(By.Id("LastNameField")); LastNameField.Clear(); SendData(LastNameField, "1"); IsVisible(By.Id("MiddeNameField")); MiddeNameField.Clear(); SendData(MiddeNameField, "1"); IsVisible(By.Id("PasswordField")); PasswordField.Clear(); SendData(PasswordField, "1"); IsVisible(By.Id("PhoneField")); PhoneField.Clear(); SendData(PhoneField, "1"); IsClickable(SecurityGroupField); SecurityGroupFieldOption.SelectByIndex(1); IsVisible(By.Id("UsernameField")); UsernameField.Clear(); SendData(UsernameField, "1"); } // close FillForm