コード例 #1
0
        public void DispatchSearch()
        {
            var datarows = Initialize();

            foreach (var datarow in datarows.Where(datarow => datarow.ItemArray[4].ToString().Equals("Dispatch")))
            {
                Console.WriteLine(datarow.ItemArray[3]);
                SearchWindow.SelectSearchElements(datarow.ItemArray[5].ToString(), "Dispatch",
                                                  SearchWindow.SearchTypeConstants.Simple);
                SearchWindow.SelectJobOrderFromResults();

                Factory.AssertIsTrue(JobOrderWindow.VerifyDispatchStatusDisplayed(), "Dispatch status is not displayed for selected job order");
                JobOrderWindow.CloseJobOrderProfileWindow();
                SimpleSearchWindow.CloseResultsWindow();
            }
            Cleanup();
        }