public void WorkerSimpleSearch() { var datarows = Initialize(); foreach (var dataRow in datarows) { var TypeOne = dataRow.ItemArray[4].ToString(); if (TypeOne.Equals("Worker")) { Console.WriteLine(dataRow.ItemArray[3]); SearchWindow.SelectSearchElements(dataRow.ItemArray[5].ToString(), TypeOne, SearchWindow.SearchTypeConstants.Simple); Globals.WorkerName = dataRow.ItemArray[6].ToString(); SimpleSearchWindow.SelectWorkerFromResultsWindow(); Factory.AssertIsTrue(SimpleSearchWindow.VerifyWorkerProfileDisplayed(dataRow.ItemArray[6].ToString()), "Displayed results does not contain: " + dataRow.ItemArray[5]); TitlebarActions.ClickClose((WinWindow)SimpleSearchWindow.GetWorkerProfileWindowProperties()); TitlebarActions.ClickClose((WinWindow)SimpleSearchWindow.GetSearchResultsWindowProperties()); } } //Cleanup(); }
public void VerifyARCustomerProfileDefaultsTest() { Initialize(); LandingPage.SelectFromToolbar("AR"); ARWindow.SelectCustomerCollectionFromLandingPage(); CustomerProfileWindow.SelectTab(CCTabConstants.Invoices); Factory.AssertIsTrue(CustomerProfileWindow.VerifyNoteTypeOptionsDisplayed(), "Note type options are not displayed."); CustomerProfileWindow.SelectTab(CCTabConstants.Notes); ARWindow.ClickAddNoteButton(); Factory.AssertIsTrue(ARWindow.VerifyBalanceDueAmountDisplayed(), "Balance amount is not displayed"); Factory.AssertIsTrue(ARWindow.VerifyProfileWindowDisplayedWhenCusNameLinkClicked(), "Customer profile window is not displayed when customer name link is clicked"); CustomerProfileWindow.CloseCustomerProfileWindow(); //Factory.AssertIsTrue(ARWindow.VerifyProfileWindowDisplayedWhenCusNumberLinkClicked(), // "Customer profile window is not displayed when customer number link is clicked"); //CustomerProfileWindow.CloseCustomerProfileWindow(); TitlebarActions.ClickClose((WinWindow)ARWindow.GetCustomerCollectionsWindowProperties()); LandingPage.SelectEODReviewFromNavigationExplorer(); ARWindow.SearchForAllEODReviews(); Cleanup(); }
public static bool CloseSearchResultsWindow() { var workerSearchResultsWindow = GetWorkerSearchResultsWindowProperties(); if (workerSearchResultsWindow.Exists) { TitlebarActions.ClickClose((WinWindow)workerSearchResultsWindow); return(true); } return(false); }
public static void CloseSearchResultsWindow() { try { TitlebarActions.ClickClose((WinWindow)GetSearchResultsWindowProperties()); } catch { Actions.SendAltF4(); } }
public static bool ClickonOkBtn() { var okWindow = GetConfirmationWindowProperties(); if (okWindow.Exists) { TitlebarActions.ClickClose((WinWindow)okWindow); return(true); } return(false); }
public static bool CloseDispatchWindow() { var dispatchWindow = GetDispatchWindowProperties(); if (dispatchWindow.Exists) { TitlebarActions.ClickClose((WinWindow)dispatchWindow); return(true); } return(false); }
public static bool CloseQuoteProfileWindow() { var quoteProfileWindow = GetQuoteProfileWindowProperties(); if (quoteProfileWindow.Exists) { TitlebarActions.ClickClose((WinWindow)quoteProfileWindow); return(true); } return(false); }
public static bool ClosedSearchResultsWindow() { var searchresultsWindow = GetNotificationSearchResultsWindowProperties(); if (searchresultsWindow.Exists) { TitlebarActions.ClickClose((WinWindow)searchresultsWindow); return(true); } return(false); }
public static void CloseResultsWindow() { try { TitlebarActions.ClickClose((WinWindow)GetSearchResultsWindowProperties()); } catch (Exception) { //Suppress all exceptions } }
public void WorkTicketSearch() { var datarows = Initialize(); foreach (var datarow in datarows.Where(datarow => datarow.ItemArray[4].ToString().Equals("WorkTicket"))) { Console.WriteLine(datarow.ItemArray[3]); SearchWindow.SelectSearchElements(datarow.ItemArray[5].ToString(), "WorkTicket", SearchWindow.SearchTypeConstants.Simple); Factory.AssertIsTrue(JobOrderWindow.VerifyDispatchPayoutWindowDisplayed("REPUBLIC SERVICES / DIV 4183 - Job Order Schedule – Dispatch / Payout"), "Results are displayed for the search criteria"); TitlebarActions.ClickClose((WinWindow)JobOrderWindow.GetJobOrderDispatchPayoutWindowProperties("REPUBLIC SERVICES / DIV 4183 - Job Order Schedule – Dispatch / Payout")); } Cleanup(); }
public void CustomerCalendarFilterTest() { Initialize(); LandingPage.SelectFromToolbar("Customers"); LandingPage.ClickOnCalendarButton(LandingPage.LandingPageControls.Advanced); LandingPage.EnterDate(LandingPage.LandingPageControls.AdvancedFromDate, "01012014"); LandingPage.EnterDate(LandingPage.LandingPageControls.AdvancedToDate, "02272014"); //LandingPage.ClickOnCalendarClient(); SendKeys.SendWait("{TAB}"); CustomerProfileWindow.SelectFirstCustomerFromTable(); Factory.AssertIsTrue(CustomerProfileWindow.VerifyProfileDefaults(), ""); TitlebarActions.ClickClose((WinWindow)CustomerProfileWindow.GetCustomerProfileWindowProperties()); Cleanup(); }
public void NotificationSimpleSearch() { var datarows = Initialize(); foreach (var datarow in datarows.Where(datarow => datarow.ItemArray[4].ToString().Equals("Lockout"))) { Console.WriteLine(datarow.ItemArray[3]); SearchWindow.SelectSearchElements(datarow.ItemArray[5].ToString(), "Lockout", SearchWindow.SearchTypeConstants.Simple); Playback.Wait(3000); Factory.AssertIsTrue(SimpleSearchWindow.VerifyLockoutOverideWindowDisplayed(), "Results are displayed for the search criteria"); TitlebarActions.ClickClose((WinWindow)SimpleSearchWindow.GetLockoutOverideWindowProperties()); } Cleanup(); }
public void InvoicesSearch() { var datarows = Initialize(); foreach (var datarow in datarows.Where(datarow => datarow.ItemArray[4].ToString().Equals("Invoices"))) { Console.WriteLine(datarow.ItemArray[3]); SearchWindow.SelectSearchElements(datarow.ItemArray[5].ToString(), "Invoices2", SearchWindow.SearchTypeConstants.Simple); Playback.Wait(3000); Factory.AssertIsTrue(SimpleSearchWindow.VerifyCustomerInvoiceDisplayed(), "Customer invoice is not displayed for the search criteria"); TitlebarActions.ClickClose((WinWindow)SimpleSearchWindow.GetCustomerInvoiceWindowProperties()); } Cleanup(); }
public void CustomerSimpleSearch() { try { var datarows = Initialize(); foreach (var dataRow in datarows.Where(dataRow => dataRow.ItemArray[4].ToString().Equals("Customer"))) { Debug.WriteLine(dataRow.ItemArray[3]); SearchWindow.SelectSearchElements(dataRow.ItemArray[5].ToString(), "Customer", SearchWindow.SearchTypeConstants.Simple); Playback.Wait(3000); Globals.CustomerName = dataRow.ItemArray[6].ToString(); Factory.AssertIsTrue(SimpleSearchWindow.VerifyCustomerProfileDisplayed(dataRow.ItemArray[6].ToString()), "Customer profile for " + dataRow.ItemArray[5] + " Is not displayed"); TitlebarActions.ClickClose((WinWindow)CustomerProfileWindow.GetCustomerProfileWindowProperties()); } } finally { Cleanup(); } }
public void CreditCardSearch() { try { var datarows = Initialize(); foreach (var datarow in datarows.Where(datarow => datarow.ItemArray[4].ToString().Equals("CreditCard"))) { Debug.WriteLine(datarow.ItemArray[3]); SearchWindow.SelectSearchElements(datarow.ItemArray[5].ToString(), "CreditCard", SearchWindow.SearchTypeConstants.Simple); SearchWindow.SelectCardFromResults(); Factory.AssertIsTrue(SimpleSearchWindow.VerifyViewCreditCardPaymentWindowDisplayed(datarow.ItemArray[5].ToString()), "View Credit card payment window is not displayed for the search criteria"); TitlebarActions.ClickClose((WinWindow)SimpleSearchWindow.GetViewCreditCardPaymentWindowProperties()); SimpleSearchWindow.CloseResultsWindow(); } } finally { Cleanup(); } }
public static void CloseUnclaimedPropertyWindow() { var unclaimedProperty = GetUnclaimedPropertyWindowProperties(); TitlebarActions.ClickClose((WinWindow)unclaimedProperty); }
public static void CloseWorkerSkillsWindow() { var win = (WinWindow)GetWorkerProfileWindowProperties(); TitlebarActions.ClickClose(win); }
public static void ClickValidationOk() { TitlebarActions.ClickClose((WinWindow)GetSearchValidationErrorWindowProperties()); SendKeys.SendWait("%O"); }