public void InvoiceTransactionsSearch() { try { var datarows = Initialize(); foreach (var datarow in datarows.Where(datarow => datarow.ItemArray[4].ToString().Equals("ITransactions"))) { Console.WriteLine(datarow.ItemArray[3]); SearchWindow.SelectSearchElements(datarow.ItemArray[5].ToString(), "ITransactions2", SearchWindow.SearchTypeConstants.Simple); SearchWindow.SelectInvoiceFromResults(); Factory.AssertIsTrue(SimpleSearchWindow.VerifyCustomerInvoiceWindowDisplayed(datarow.ItemArray[5].ToString()), "View Credit card payment window is not displayed for the search criteria"); } } finally { Cleanup(); } }