public void A08_Admin_Merges_Users_that_Both_Have_Selected_Interests_33987() { Driver.CreateNewAccount_Specific(user + "User1"); LoginPage.LoginAs(user + "User1").WithPassword("").Login(); CommonSection.Avatar.Account(); AccountPage.ClickProfiletab(); string primaryuser1_tags = AccountPage.addInterest(); Driver.CreateNewAccount_Specific(user + "User2"); LoginPage.LoginAs(user + "User2").WithPassword("").Login(); CommonSection.Avatar.Account(); AccountPage.ClickProfiletab(); string primaryuser2_tags = AccountPage.addInterest(); LoginPage.LoginAs("").WithPassword("").Login(); CommonSection.Administer.People.MergeUser(); MergeUsersPage.mergeUsers(user + "User1", user + "User2"); driver.LogoutUser(ObjectRepository.LogoutHoverLink, ObjectRepository.HoverMainLink); LoginPage.LoginAs(user + "User1").WithPassword("").Login(); CommonSection.Avatar.Account(); AccountPage.ClickProfiletab(); string expectedTag = Driver.Instance.GetElement(By.XPath("//a[@class='btn btn-add-remove btn-outline-primary']")).Text; StringAssert.AreEqualIgnoringCase(primaryuser1_tags, expectedTag); }