public void InvoiceRelationShipsSearch() { var datarows = Initialize(); foreach (var datarow in datarows.Where(datarow => datarow.ItemArray[4].ToString().Equals("IRelationShips"))) { Console.WriteLine(datarow.ItemArray[3]); SearchWindow.SelectSearchElements(datarow.ItemArray[5].ToString(), "IRelationShips2", SearchWindow.SearchTypeConstants.Simple); Factory.AssertIsTrue(SimpleSearchWindow.VerifySearchResultsWindowDisplayed(), "Results are displayed for the search criteria"); SimpleSearchWindow.CloseResultsWindow(); } Cleanup(); }
public void BillingLineItemSearch() { var datarows = Initialize(); foreach (var datarow in datarows.Where(datarow => datarow.ItemArray[4].ToString().Equals("BillingLineItem"))) { Console.WriteLine(datarow.ItemArray[3]); SearchWindow.SelectSearchElements(datarow.ItemArray[5].ToString(), "BillingLineItem", SearchWindow.SearchTypeConstants.Simple); Playback.Wait(3000); Factory.AssertIsTrue(SimpleSearchWindow.VerifySearchResultsWindowDisplayed(), "Search results window is not displayed for the search criteria"); SimpleSearchWindow.CloseResultsWindow(); } Cleanup(); }