public void ChangeProfileData() { KinopoiskHomePage homePage = new KinopoiskHomePage(ConciseApi); RegistrationPage registrationPage = homePage.GoToRegistartionPage(); homePage = registrationPage.LoginWithCredentials <KinopoiskHomePage>(true); ProfilePage profilePage = homePage.GoToProfilePage(); ProfileSettingsPage profileSettingsPage = profilePage.GoToProfileSettingsPage(); profileSettingsPage.FillInFieldAndSave("test", ProfileSettingsPage.PageElements.AboutTextArea); Assert.AreEqual("test", profileSettingsPage.GetAboutText()); }
protected override void Awake() { base.Awake(); _settingsPage = Page.GetPageWithComponent(SettingsPagePrefab); for (int optionIndex = 0; optionIndex < Options.Length; ++optionIndex) { int localOptionIndex = optionIndex; Options[optionIndex].InteractAction.AddListener(delegate() { _settingsPage.Profile = _availableProfiles[ValueOffset + localOptionIndex]; Page.GoToPage(SettingsPagePrefab); }); } FilterButton.FilterTextChange.AddListener(FilterTextChange); }