protected void ChooseSports(CoachUserModel model) { txaChooseSports.Waiting(For.Exist); misChooseSportsInput.SelectByText(model.Sports); btnPopupAddUser.Waiting(For.Clickable); btnPopupAddUser.Click(); }
public CoachStaffPage AddNewUser(CoachUserModel model) { this.btnAddUser.Click(); InputBaseInformation(model); //input base information. ChooseSports(model); //choose sports. //New Coach Profile Information: Message box. btnPopupOk.Waiting(For.Clickable); btnPopupOk.Click(); return(this); }
protected void InputBaseInformation(CoachUserModel model) { txaDialogTitleNewCoach.Waiting(For.Exist); this.txtFirstName.SendKeys(model.FirstName); this.txtLastName.SendKeys(model.LastName); //this.ddlGender.SendKeys(model.Gender); this.txtTitle.SendKeys(model.Title); this.txtEmailAddress.SendKeys(model.EmailAddress); this.txtPhoneNumber.SendKeys(model.PhoneNumber); //this.txtPhoneNumberType.SendKeys(model.PhoneNumberType); this.txtComment.SendKeys(model.Comment); btnAssignSports.Waiting(For.Clickable); btnAssignSports.Click(); }
public void Demo_Case_AddCoach() { var model = new CoachUserModel() { FirstName = "Alan", LastName = "L002", EmailAddress = "*****@*****.**", Gender = GenderType.Male, PhoneNumber = "18600000000", Comment = "Comment here.", Title = "Test Titile", Sports = "Men's Basketball" //PhoneNumberType }; var signInPage = Router.GoTo <CoachSignInPage>(); var dbProspectsPage = signInPage.SignIn("*****@*****.**", "active"); dbProspectsPage.Settings.Select <CoachStaffPage>().AddNewUser(model); //var staffPage = dbProspectsPage.Settings.Select<CoachStaffPage>(); //staffPage.AddNewUser(model); }