public void Profile_FillTitle() { VuePopup vue = new VuePopup(); Random rnd = new Random(); vue.Registration(true); vue.CloseWizzardPopup.Click(); Driver.Browser.Url = TestDataResource.MainPageURL + "/profile/account/"; Profile_AccountPage account = new Profile_AccountPage(); account.NameTextBox.SendKeys(TestDataResource.UserName); account.SurnameTextBox.SendKeys(TestDataResource.UserSurname); account.NicknameTextBox.SendKeys(TestDataResource.UserNickname); account.MaleGenderRadioButton.Click(); account.FillDate(); account.SaveTitleButton.Click(); Assert.IsTrue(account.SuccessSaveMessage.Displayed); }
public void Profile_FillTitle() { RegistrationPage registr = new RegistrationPage(); Random rnd = new Random(); registr.Registration(rnd.Next().ToString() + "@mail.ru", false); Thread.Sleep(5000); Driver.Browser.Url = TestDataResource.MainPageURL + "/profile/account/"; Profile_AccountPage account = new Profile_AccountPage(); account.NameTextBox.SendKeys(TestDataResource.UserName); account.SurnameTextBox.SendKeys(TestDataResource.UserSurname); account.NicknameTextBox.SendKeys(TestDataResource.UserNickname); account.MaleGenderRadioButton.Click(); account.FillDate(); account.SaveTitleButton.Click(); Assert.IsTrue(account.SuccessSaveMessage.Displayed); }