public static void EditeProfile(UserProfile user) { UserProfilePageObjects userProfilePageObjects = new UserProfilePageObjects(); SeleniumSetMethods.ChangeTextForWebElement(userProfilePageObjects.FirstName, user.FirstName); SeleniumSetMethods.ChangeTextForWebElement(userProfilePageObjects.LastName, user.LastName); SeleniumSetMethods.ChangeTextForWebElement(userProfilePageObjects.BirthDate, GetDate(user.BirthDate)); SelectSex(user.Sex, userProfilePageObjects); SeleniumSetMethods.ChangeTextForWebElement(userProfilePageObjects.City, user.City); SeleniumSetMethods.ChangeTextForWebElement(userProfilePageObjects.Signature, user.Signature); if (ImageUtils.IsValidImage(FileUtils.CreateInputPath(user.Photo))) { userProfilePageObjects.Photo.SendKeys(FileUtils.CreateInputPath(user.Photo)); } userProfilePageObjects.Save.Click(); // userProfilePageObjects.Cancel.Click(); daca vreau sa renunt }