public void ATC3310_CRMInvestigationAllCasesViewColumns() { //Login in as role User user = this.environment.GetUser(SecurityRole.Investigations); new LoginDialog().Login(user.Id, user.Password); HomePage homePage = new HomePage(driver); String HomeWindow = driver.CurrentWindowHandle; homePage.HoverCRMRibbonTab(); homePage.ClickInvestigationsRibbonButton(); homePage.HoverInvestigationsRibbonTab(); homePage.ClickInvestigationsCasesRibbonButton(); // Select the 'All Investigation Cases' view from the table InvestigationCaseSearchPage investigationCaseSearchPage = new InvestigationCaseSearchPage(driver); investigationCaseSearchPage.SetPageFilterList("All Investigation Cases"); Table table = new Table(investigationCaseSearchPage.GetHeaderSearchResultTable()); Assert.AreEqual(1, table.GetColumnHeaderIndex("Case Number"), "Case Number column is not seen or is not 1st column!!"); Assert.AreEqual(2, table.GetColumnHeaderIndex("Master Case"), "Master Case column is not seen or is not 2ndt column!!"); Assert.AreEqual(3, table.GetColumnHeaderIndex("Investigation Status"), "Investigation Status column is not seen or is not 3rd column!!"); Assert.AreEqual(4, table.GetColumnHeaderIndex("Investigation Sub Status"), "Investigation Sub Status column is not seen or is not 4th column!!"); Assert.AreEqual(5, table.GetColumnHeaderIndex("Priority"), "Priority column is not seen or is not 5th column!!"); Assert.AreEqual(6, table.GetColumnHeaderIndex("Received Date"), "Received Date column is not seen or is not 6th column!!"); Assert.AreEqual(7, table.GetColumnHeaderIndex("Finalised Date"), "Finalised Date column is not seen or is not 7th column!!"); Assert.AreEqual(8, table.GetColumnHeaderIndex("Duration (days)"), "Duration (days) column is not seen or is not 8th column!!"); Assert.AreEqual(9, table.GetColumnHeaderIndex("Investigator"), "Investigator column is not seen or is not 9th column!!"); Assert.AreEqual(10, table.GetColumnHeaderIndex("Owner"), "Owner column is not seen or is not 10th column!!"); Assert.AreEqual(0, table.GetColumnHeaderIndex("Action Date"), "Action Date column is seen!!"); Assert.AreEqual(0, table.GetColumnHeaderIndex("Follow Up Date"), "Follow Up Date column is seen!!"); Assert.AreEqual(0, table.GetColumnHeaderIndex("Title"), "Title column is seen!!"); }