public void VerifyThatAdminCanChangeRole() { LogProgress("Admin navigating to User Page"); var userPage = homePage.NavigateToUsers(); LogProgress("Admin change role to Manager"); var rowsPage = userPage.ReturnUsersTable(); var rowWithEmail = rowsPage.GetRowByEmail("*****@*****.**"); var changeRolePopUp = rowWithEmail.GetChangeRolePopUp(); userPage = changeRolePopUp.SelectRole("MANAGER"); rowsPage = userPage.ReturnUsersTable(); rowWithEmail = rowsPage.GetRowByEmail("*****@*****.**"); var actualRole = rowWithEmail.GetRole(); var expectedRole = "MANAGER"; Assert.AreEqual(expectedRole, actualRole, "Admin changed user`s role to Manager"); LogProgress("Post condition: Admin returns role to User"); rowsPage = userPage.ReturnUsersTable(); rowWithEmail = rowsPage.GetRowByEmail("*****@*****.**"); changeRolePopUp = rowWithEmail.GetChangeRolePopUp(); userPage = changeRolePopUp.SelectRole("USER"); LogProgress("Post condition is successful"); }