public void Test002_EditSecurityRole() { Trace.WriteLine(BasePage.RunningTestKeyWord + "'Edit the Security Role'"); var manageRolesPage = new ManageRolesPage(_driver); manageRolesPage.OpenUsingControlPanel(_baseUrl); manageRolesPage.AddDescriptionToSecurityRole(_roleName, _roleDescription); manageRolesPage.WaitForElement(By.XPath(ManageRolesPage.SecurityRolesTable)); Trace.WriteLine(BasePage.TraceLevelPage + "ASSERT the Security description is present in the list"); Assert.That(_roleDescription, Is.EqualTo(manageRolesPage.FindElement(By.XPath("//tr[td[text() = '" + _roleName + "']]/td[4]")).Text), "The role description is not added correctly"); }