Example #1
0
 public void UserHasDetails(UserGridElements elements, UserDetails details)
 {
     elements.MasterToggleDetailsButton.Click();
     Manager.Current.ActiveBrowser.WaitForElement(2500, "CandidateInformation".ToClassIsExpression());
     elements.DetailsUsername.AssertTextEquals(details.Username);
     elements.DetailsName.AssertTextIsContained(details.FirstNameInBulgarian);
     elements.DetailsName.AssertTextIsContained(details.LastNameInBulgarian);
     elements.DetailsBirthDate.AssertTextEquals(details.BirthDate.ToString("dd-MM-yyyy"));
     elements.DetailsGender.AssertTextEquals(details.GenderAssert);
     elements.DetailsOccupation.AssertTextEquals(details.Occupation);
     elements.DetailsCity.AssertTextEquals(details.City);
     elements.DetailsPhone.AssertTextEquals(details.MobilePhone);
     elements.DetailsEmail.AssertTextEquals(details.Email);
     elements.DetailsSkypeName.AssertTextEquals(details.Skype);
     elements.DetailsForumPoints.AssertTextEquals(details.ForumPoints.ToString("F0"));
     elements.DetailsUniversity.AssertTextEquals(details.University);
     elements.DetailsFaculty.AssertTextEquals(details.Faculty);
     elements.DetailsFacultyNumber.AssertTextEquals(details.FacultyNumber);
     elements.DetailsSpecialty.AssertTextEquals(details.Specialty);
     elements.DetailsSchool.AssertTextEquals(details.School);
     elements.DetailsWebsite.AssertTextEquals(details.WebSite);
     elements.DetailsGooglePlus.AssertTextEquals(details.GooglePlus);
     elements.DetailsLinkedIn.AssertTextEquals(details.LinkedIn);
     elements.DetailsTwitter.AssertTextEquals(details.Twitter);
     elements.DetailsFacebook.AssertTextEquals(details.Facebook);
 }
Example #2
0
 public void EnterUserDetails(UserDetails details)
 {
     this.Elements.UsernameField.EnterValueWithChangeEvent(details.Username);
     this.Elements.EmailField.EnterValueWithChangeEvent(details.Email);
     this.Elements.FirstNameField.EnterValueWithChangeEvent(details.FirstNameInBulgarian);
     this.Elements.LastNameField.EnterValueWithChangeEvent(details.LastNameInBulgarian);
     this.Elements.FirstNameEnField.EnterValueWithChangeEvent(details.FirstNameInEnglish);
     this.Elements.LastNameEnField.EnterValueWithChangeEvent(details.LastNameInEnglish);
     this.SelectByText(
         this.Elements.SelectGenderButton,
         this.Elements.GenderSelectionList,
         details.Gender);
     this.Elements.AccessCardNumberField.EnterValueWithChangeEvent(details.AccessCard);
     this.Elements.AboutField.AsTextAreaEnterValue(details.About);
     this.SelectByText(
         this.Elements.SelectOccupationButton,
         this.Elements.OccupationSelectionList,
         details.Occupation);
     this.Elements.PhoneField.EnterValueWithChangeEvent(details.MobilePhone);
     this.Elements.BirthDayField.AsKendoDatePickerSetDate(details.BirthDate);
     this.SelectByText(
         this.Elements.CitySelectButton,
         this.Elements.CitySelectionList,
         details.City);
     this.SelectByText(
         this.Elements.UniversitySelectButton,
         this.Elements.UniversitySelectionList,
         details.University);
     this.Elements.FacultyNameField.EnterValueWithChangeEvent(details.Faculty);
     this.Elements.UniversitySpecialityField.EnterValueWithChangeEvent(details.Specialty);
     this.Elements.FacultyNumberField.EnterValueWithChangeEvent(details.FacultyNumber);
     this.Elements.SchoolNameField.EnterValueWithChangeEvent(details.School);
     this.Elements.WebsiteField.EnterValueWithChangeEvent(details.WebSite);
     this.Elements.SkypeUsernameField.EnterValueWithChangeEvent(details.Skype);
     this.Elements.FacebookUrlField.EnterValueWithChangeEvent(details.Facebook);
     this.Elements.GooglePlusUrlField.EnterValueWithChangeEvent(details.GooglePlus);
     this.Elements.LinkedInUrlField.EnterValueWithChangeEvent(details.LinkedIn);
     this.Elements.TwiterUrlField.EnterValueWithChangeEvent(details.Twitter);
     ForumPointsInput(details.ForumPoints);
 }
Example #3
0
 public void EditFirstUser(UserDetails userDetails)
 {
     this.OpenFirstUserEditPopUp();
     string username = this.GetFirstUserUsername();
     this.EditPopup.Validator.EditUserPopupIsOpened(username);
     this.EditPopup.EnterUserDetails(userDetails);
     this.EditPopup.Elements.UpdateButton.Click();
     UserGridElements userGridElements = this.GetFirstUserGridElements();
     userDetails.ForumPoints += 1;
     this.Validator.UserHasDetails(userGridElements, userDetails);
 }