public void Can_Update_Account()
        {
            #region TestData
            const string firstAndLastNames = "Sidenko Alexander";
            #endregion

            var searchPage = new SearchResultPage();
            var profilePage = new ProfilePage();
            searchPage.FillSearchField(firstAndLastNames);
            searchPage.SearchSubmit();
            searchPage.ChoosePersonFromSearchList();
            profilePage.ClickUploadPhotoButton();
            profilePage.ChoosePhotoFromPC();
            searchPage.GoToWrestlerTab();
            searchPage.SecondSearch();

            Assert.IsTrue(SearchResultPage.DoesPhotoLabelChanged, "Photo was not downloaded. Please, try again");
        }
        public void Can_Delete_Account()
        {
            #region TestData
            const string firstAndLastNames = "Siiidenko Alexander";
            #endregion

            var searchPage = new SearchResultPage();
            var profilePage = new ProfilePage();

            searchPage.FillSearchField(firstAndLastNames);
            searchPage.SearchSubmit();
            searchPage.ChoosePersonFromSearchList();
            profilePage.DeleteWrestler();
            profilePage.ConfirmDeleteUser();
            searchPage.SecondSearch();

            Assert.IsFalse(SearchResultPage.IsAtInEmptyTable, "Your account was not deleted");
        }
        public void Can_Create_Account_With_Valid_Data()
        {
            var testWrestler = new Wrestler
            {
                lname = "Siredenko",
                fname = "Alexander",
                dob = "12-12-1998",
                mname = "Olegoeich",
            };
            var page = new NewWrestlerPage();
            page.ClickNewUserButton();
            page.FillFields(testWrestler);
            page.SubmitNewWrestlerAccount();
            page.WaitForWrestlerTitleChanged();

            var profilePage = new ProfilePage();

            Assert.AreEqual(profilePage.wrestlerTitleElement.Text, "Siredenko A.O.");
        }