示例#1
0
        public void CheckPresenceOfControls()
        {
            //Label

            MAUIUtilities.GetControl <StaticControl>(authenWindow,
                                                     ResourceNames.Authen.UserNameLabel, StringMatchSyntax.ExactMatch,
                                                     "*", StringMatchSyntax.WildCard);
            MAUIUtilities.GetControl <StaticControl>(authenWindow,
                                                     ResourceNames.Authen.PasswordLabel, StringMatchSyntax.ExactMatch,
                                                     "*", StringMatchSyntax.WildCard);
            ////Combo
            //MAUIUtilities.GetControl<ComboBox>(authenWindow,
            //            ResourceNames.Authen.RoleIdComboBoxName);

            //Button
            MAUIUtilities.GetControl <Button>(authenWindow,
                                              ResourceNames.Authen.OkButtonName);
            MAUIUtilities.GetControl <Button>(authenWindow,
                                              ResourceNames.Authen.CancelButtonName);
            //TextBox
            MAUIUtilities.GetControl <TextBox>(authenWindow,
                                               ResourceNames.Authen.UserNameTextBox);
            MAUIUtilities.GetControl <TextBox>(authenWindow,
                                               ResourceNames.Authen.PasswordTextBox);
        }
示例#2
0
        public void CheckPresenceOfControls()
        {
            //TextBoxes
            MAUIUtilities.GetControl <TextBox>(shellWindow,
                                               ResourceNames.CustomerSummary.NameTextBoxName);
            MAUIUtilities.GetControl <TextBox>(shellWindow,
                                               ResourceNames.CustomerSummary.AddressTextBoxName);
            MAUIUtilities.GetControl <TextBox>(shellWindow,
                                               ResourceNames.CustomerSummary.SSNTextBoxName);
            MAUIUtilities.GetControl <TextBox>(shellWindow,
                                               ResourceNames.CustomerSummary.HomeNumberTextBoxName);
            MAUIUtilities.GetControl <TextBox>(shellWindow,
                                               ResourceNames.CustomerSummary.EMailTextBoxName);
            MAUIUtilities.GetControl <TextBox>(shellWindow,
                                               ResourceNames.CustomerSummary.ReasonCodeTextBoxName);
            MAUIUtilities.GetControl <TextBox>(shellWindow,
                                               ResourceNames.CustomerSummary.DescriptionTextBoxName);
            MAUIUtilities.GetControl <TextBox>(shellWindow,
                                               ResourceNames.CustomerSummary.TimeInTextBoxName);
            MAUIUtilities.GetControl <TextBox>(shellWindow,
                                               ResourceNames.CustomerSummary.StatusTextBoxName);

            //Button
            MAUIUtilities.GetControl <Button>(shellWindow,
                                              ResourceNames.CustomerSummary.ServiceCompletedButtonName);

            //Labels
            MAUIUtilities.GetControl <StaticControl>(shellWindow,
                                                     ResourceNames.CustomerSummary.NameLabelText, StringMatchSyntax.ExactMatch,
                                                     "*", StringMatchSyntax.WildCard);
            MAUIUtilities.GetControl <StaticControl>(shellWindow,
                                                     ResourceNames.CustomerSummary.AddressLabelText, StringMatchSyntax.ExactMatch,
                                                     "*", StringMatchSyntax.WildCard);
            MAUIUtilities.GetControl <StaticControl>(shellWindow,
                                                     ResourceNames.CustomerSummary.SSNLabelText, StringMatchSyntax.ExactMatch,
                                                     "*", StringMatchSyntax.WildCard);
            MAUIUtilities.GetControl <StaticControl>(shellWindow,
                                                     ResourceNames.CustomerSummary.EMailLabelText, StringMatchSyntax.ExactMatch,
                                                     "*", StringMatchSyntax.WildCard);
            MAUIUtilities.GetControl <StaticControl>(shellWindow,
                                                     ResourceNames.CustomerSummary.TimeInLabelText, StringMatchSyntax.ExactMatch,
                                                     "*", StringMatchSyntax.WildCard);
            MAUIUtilities.GetControl <StaticControl>(shellWindow,
                                                     ResourceNames.CustomerSummary.ReasonCodeLabelText, StringMatchSyntax.ExactMatch,
                                                     "*", StringMatchSyntax.WildCard);
            MAUIUtilities.GetControl <StaticControl>(shellWindow,
                                                     ResourceNames.CustomerSummary.DescriptionLabelText, StringMatchSyntax.ExactMatch,
                                                     "*", StringMatchSyntax.WildCard);
            MAUIUtilities.GetControl <StaticControl>(shellWindow,
                                                     ResourceNames.CustomerSummary.StatusLabelText, StringMatchSyntax.ExactMatch,
                                                     "*", StringMatchSyntax.WildCard);

            //ListViews
            MAUIUtilities.GetControl <ListView>(shellWindow,
                                                ResourceNames.CustomerSummary.AlertDataGridViewName);
            MAUIUtilities.GetControl <ListView>(shellWindow,
                                                ResourceNames.CustomerSummary.AccountDataGridViewName);
            MAUIUtilities.GetControl <ListView>(shellWindow,
                                                ResourceNames.CustomerSummary.CreditCardDataGridViewName);
        }
示例#3
0
        public bool IsInSufficientFundMessageDisplayed()
        {
            MAUIUtilities.GetControl <StaticControl>(shellWindow,
                                                     ResourceNames.PurchaseCD.lblIsufficientFundsMessage, StringMatchSyntax.ExactMatch,
                                                     "*", StringMatchSyntax.WildCard);

            return(true);
        }
示例#4
0
        public void CheckPresenceOfControls()
        {
            #region Button-Controls

            MAUIUtilities.GetControl <Button>(shellWindow,
                                              ResourceNames.PurchaseCD.GetRateButtonName);
            MAUIUtilities.GetControl <Button>(shellWindow,
                                              ResourceNames.PurchaseCD.PurchaseButtonName);
            MAUIUtilities.GetControl <Button>(shellWindow,
                                              ResourceNames.PurchaseCD.CancelButtonName);

            #endregion

            #region Label-Controls

            MAUIUtilities.GetControl <StaticControl>(shellWindow,
                                                     ResourceNames.PurchaseCD.lblDurationName, StringMatchSyntax.ExactMatch,
                                                     "*", StringMatchSyntax.WildCard);
            MAUIUtilities.GetControl <StaticControl>(shellWindow,
                                                     ResourceNames.PurchaseCD.lblAmountName, StringMatchSyntax.ExactMatch,
                                                     "*", StringMatchSyntax.WildCard);
            MAUIUtilities.GetControl <StaticControl>(shellWindow,
                                                     ResourceNames.PurchaseCD.lblAccountName, StringMatchSyntax.ExactMatch,
                                                     "*", StringMatchSyntax.WildCard);
            MAUIUtilities.GetControl <StaticControl>(shellWindow,
                                                     ResourceNames.PurchaseCD.lblCalculatedRateName, StringMatchSyntax.ExactMatch,
                                                     "*", StringMatchSyntax.WildCard);
            //MAUIUtilities.GetControl<StaticControl>(shellWindow,
            //    ResourceNames.PurchaseCD.lblNotificationMessage, StringMatchSyntax.ExactMatch,
            //    "*", StringMatchSyntax.WildCard);

            #endregion

            #region  TextBox-Controls

            MAUIUtilities.GetControl <TextBox>(shellWindow,
                                               ResourceNames.PurchaseCD.txtDuration);
            MAUIUtilities.GetControl <TextBox>(shellWindow,
                                               ResourceNames.PurchaseCD.txtAmount);
            MAUIUtilities.GetControl <TextBox>(shellWindow,
                                               ResourceNames.PurchaseCD.txtCalculatedRate);

            #endregion

            MAUIUtilities.GetControl <ListView>(shellWindow,
                                                ResourceNames.PurchaseCD.dgRatesTableDataGridView);

            MAUIUtilities.GetControl <ComboBox>(shellWindow,
                                                ResourceNames.PurchaseCD.AccountComboBoxId);

            //TODO: Need Clarification regarding LinkLabel Control
            //MAUIUtilities.GetControl<Button>(shellWindow,
            //       ResourceNames.PurchaseCD.lnkManagerApprovalLink);
        }
        public void CheckPresenceOfControls()
        {
            //Labels
            MAUIUtilities.GetControl <StaticControl>(shellWindow,
                                                     ResourceNames.RightPane.RightPaneCaptionLabel);

            //Tab Controls
            MAUIUtilities.GetControl <TabControl>(shellWindow,
                                                  ResourceNames.RightPane.CustomerDetailsTabConrol);

            //Link Labels
            MAUIUtilities.GetControl <Button>(shellWindow,
                                              ResourceNames.RightPane.PurchaseCDButtonName);
        }
示例#6
0
 public bool IsUserNotAuthorizedMessageDisplayed()
 {
     try
     {
         MAUIUtilities.GetControl <StaticControl>(shellWindow,
                                                  ResourceNames.PurchaseCD.lblUserNotAuthorizedMessage, StringMatchSyntax.ExactMatch,
                                                  "*", StringMatchSyntax.WildCard);
         MAUIUtilities.GetControl <Button>(shellWindow,
                                           ResourceNames.PurchaseCD.lnkManagerApprovalLink);
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }
示例#7
0
        public void CheckInitialShellView()
        {
            //Buttons
            MAUIUtilities.GetControl <Button>(shellWindow,
                                              ResourceNames.Shell.FindCustomerButtonName);
            //MAUIUtilities.GetControl<Button>(shellWindow,
            //                ResourceNames.Shell.ServiceCustomerButtonName);

            //Labels
            MAUIUtilities.GetControl <StaticControl>(shellWindow,
                                                     ResourceNames.Shell.MyCustomerQueueLabelName, StringMatchSyntax.ExactMatch,
                                                     "*", StringMatchSyntax.WildCard);

            //ListBox
            MAUIUtilities.GetControl <ListBox>(shellWindow,
                                               ResourceNames.Shell.MyCustomerQueueListBox);

            //ToolStrips
            new ToolStrip(shellWindow, ResourceNames.Shell.LaunchBarToolStripName);
        }
示例#8
0
 public AuthenAdapter()
 {
     //BankWorkBench.Kill();
     authenWindow = MAUIUtilities.GetWindow(BankWorkBench.Application, ResourceNames.Authen.WindowTitle);
 }
示例#9
0
 private void ResetAuthenWindow()
 {
     authenWindow = MAUIUtilities.GetWindow(BankWorkBench.Application,
                                            ResourceNames.Authen.WindowTitle, false);
 }
        public void CheckPresenceOfControls()
        {
            //TextBoxes
            MAUIUtilities.GetControl <TextBox>(findCustomerWindow,
                                               ResourceNames.FindCustomer.FirstNameTextBoxName);
            MAUIUtilities.GetControl <TextBox>(findCustomerWindow,
                                               ResourceNames.FindCustomer.LastNameTextBoxName);
            MAUIUtilities.GetControl <TextBox>(findCustomerWindow,
                                               ResourceNames.FindCustomer.MiddleInitialTextBoxName);
            MAUIUtilities.GetControl <TextBox>(findCustomerWindow,
                                               ResourceNames.FindCustomer.StreetTextBoxName);
            MAUIUtilities.GetControl <TextBox>(findCustomerWindow,
                                               ResourceNames.FindCustomer.CityTextBoxName);
            MAUIUtilities.GetControl <TextBox>(findCustomerWindow,
                                               ResourceNames.FindCustomer.StateTextBoxName);
            MAUIUtilities.GetControl <TextBox>(findCustomerWindow,
                                               ResourceNames.FindCustomer.ZipTextBoxName);
            MAUIUtilities.GetControl <TextBox>(findCustomerWindow,
                                               ResourceNames.FindCustomer.HomeNumberTextBoxName);
            MAUIUtilities.GetControl <TextBox>(findCustomerWindow,
                                               ResourceNames.FindCustomer.WorkNumberTextBoxName);
            MAUIUtilities.GetControl <TextBox>(findCustomerWindow,
                                               ResourceNames.FindCustomer.CellNumberTextBoxName);
            MAUIUtilities.GetControl <TextBox>(findCustomerWindow,
                                               ResourceNames.FindCustomer.SSNTextBoxName);
            MAUIUtilities.GetControl <TextBox>(findCustomerWindow,
                                               ResourceNames.FindCustomer.EMailTextBoxName);

            //Button
            MAUIUtilities.GetControl <Button>(findCustomerWindow,
                                              ResourceNames.FindCustomer.FindButtonName);
            MAUIUtilities.GetControl <Button>(findCustomerWindow,
                                              ResourceNames.FindCustomer.CancelButtonName);

            //Label

            MAUIUtilities.GetControl <StaticControl>(findCustomerWindow,
                                                     ResourceNames.FindCustomer.FirstNameLabelText, StringMatchSyntax.ExactMatch,
                                                     "*", StringMatchSyntax.WildCard);
            MAUIUtilities.GetControl <StaticControl>(findCustomerWindow,
                                                     ResourceNames.FindCustomer.LastNameLabelText, StringMatchSyntax.ExactMatch,
                                                     "*", StringMatchSyntax.WildCard);
            MAUIUtilities.GetControl <StaticControl>(findCustomerWindow,
                                                     ResourceNames.FindCustomer.MiddleInitialLabelText, StringMatchSyntax.ExactMatch,
                                                     "*", StringMatchSyntax.WildCard);
            MAUIUtilities.GetControl <StaticControl>(findCustomerWindow,
                                                     ResourceNames.FindCustomer.StreetLabelText, StringMatchSyntax.ExactMatch,
                                                     "*", StringMatchSyntax.WildCard);
            MAUIUtilities.GetControl <StaticControl>(findCustomerWindow,
                                                     ResourceNames.FindCustomer.CityLabelText, StringMatchSyntax.ExactMatch,
                                                     "*", StringMatchSyntax.WildCard);
            MAUIUtilities.GetControl <StaticControl>(findCustomerWindow,
                                                     ResourceNames.FindCustomer.StateLabelText, StringMatchSyntax.ExactMatch,
                                                     "*", StringMatchSyntax.WildCard);
            MAUIUtilities.GetControl <StaticControl>(findCustomerWindow,
                                                     ResourceNames.FindCustomer.ZipLabelText, StringMatchSyntax.ExactMatch,
                                                     "*", StringMatchSyntax.WildCard);
            MAUIUtilities.GetControl <StaticControl>(findCustomerWindow,
                                                     ResourceNames.FindCustomer.HomeNumberLabelText, StringMatchSyntax.ExactMatch,
                                                     "*", StringMatchSyntax.WildCard);
            MAUIUtilities.GetControl <StaticControl>(findCustomerWindow,
                                                     ResourceNames.FindCustomer.WorkNumberLabelText, StringMatchSyntax.ExactMatch,
                                                     "*", StringMatchSyntax.WildCard);
            MAUIUtilities.GetControl <StaticControl>(findCustomerWindow,
                                                     ResourceNames.FindCustomer.CellNumberLabelText, StringMatchSyntax.ExactMatch,
                                                     "*", StringMatchSyntax.WildCard);
            MAUIUtilities.GetControl <StaticControl>(findCustomerWindow,
                                                     ResourceNames.FindCustomer.SSNLabelText, StringMatchSyntax.ExactMatch,
                                                     "*", StringMatchSyntax.WildCard);
            MAUIUtilities.GetControl <StaticControl>(findCustomerWindow,
                                                     ResourceNames.FindCustomer.EMailLabelText, StringMatchSyntax.ExactMatch,
                                                     "*", StringMatchSyntax.WildCard);
        }
 private void ResetAddCustomerToQueueWindow()
 {
     addCustomerToQueueWindow = MAUIUtilities.GetWindow(BankWorkBench.Application,
                                                        ResourceNames.AddCustomerToQueue.WindowTitle, false);
 }
示例#12
0
        public void CheckPresenceOfControls()
        {
            //TextBoxes
            //MAUIUtilities.GetControl<TextBox>(addReasonWindow,
            //         ResourceNames.AddReason.CustomerIDTextBoxName);
            MAUIUtilities.GetControl <TextBox>(addReasonWindow,
                                               ResourceNames.AddReason.FirstNameTextBoxName);
            MAUIUtilities.GetControl <TextBox>(addReasonWindow,
                                               ResourceNames.AddReason.LastNameTextBoxName);
            MAUIUtilities.GetControl <TextBox>(addReasonWindow,
                                               ResourceNames.AddReason.MiddleInitialTextBoxName);
            MAUIUtilities.GetControl <TextBox>(addReasonWindow,
                                               ResourceNames.AddReason.StreetTextBoxName);
            MAUIUtilities.GetControl <TextBox>(addReasonWindow,
                                               ResourceNames.AddReason.CityTextBoxName);
            MAUIUtilities.GetControl <TextBox>(addReasonWindow,
                                               ResourceNames.AddReason.StateTextBoxName);
            MAUIUtilities.GetControl <TextBox>(addReasonWindow,
                                               ResourceNames.AddReason.ZipTextBoxName);
            MAUIUtilities.GetControl <TextBox>(addReasonWindow,
                                               ResourceNames.AddReason.HomeNumberTextBoxName);
            MAUIUtilities.GetControl <TextBox>(addReasonWindow,
                                               ResourceNames.AddReason.WorkNumberTextBoxName);
            MAUIUtilities.GetControl <TextBox>(addReasonWindow,
                                               ResourceNames.AddReason.CellNumberTextBoxName);
            MAUIUtilities.GetControl <TextBox>(addReasonWindow,
                                               ResourceNames.AddReason.SSNTextBoxName);
            MAUIUtilities.GetControl <TextBox>(addReasonWindow,
                                               ResourceNames.AddReason.EMailTextBoxName);
            MAUIUtilities.GetControl <ComboBox>(addReasonWindow,
                                                ResourceNames.AddReason.ReasonCodeComboBoxName);
            MAUIUtilities.GetControl <TextBox>(addReasonWindow,
                                               ResourceNames.AddReason.DescriptionTextBoxName);

            //Button
            MAUIUtilities.GetControl <Button>(addReasonWindow,
                                              ResourceNames.AddReason.OkButtonName);
            MAUIUtilities.GetControl <Button>(addReasonWindow,
                                              ResourceNames.AddReason.CancelButtonName);

            //Label

            MAUIUtilities.GetControl <StaticControl>(addReasonWindow,
                                                     ResourceNames.AddReason.FirstNameLabelText, StringMatchSyntax.ExactMatch,
                                                     "*", StringMatchSyntax.WildCard);
            MAUIUtilities.GetControl <StaticControl>(addReasonWindow,
                                                     ResourceNames.AddReason.LastNameLabelText, StringMatchSyntax.ExactMatch,
                                                     "*", StringMatchSyntax.WildCard);
            MAUIUtilities.GetControl <StaticControl>(addReasonWindow,
                                                     ResourceNames.AddReason.MiddleInitialLabelText, StringMatchSyntax.ExactMatch,
                                                     "*", StringMatchSyntax.WildCard);
            MAUIUtilities.GetControl <StaticControl>(addReasonWindow,
                                                     ResourceNames.AddReason.StreetLabelText, StringMatchSyntax.ExactMatch,
                                                     "*", StringMatchSyntax.WildCard);
            MAUIUtilities.GetControl <StaticControl>(addReasonWindow,
                                                     ResourceNames.AddReason.CityLabelText, StringMatchSyntax.ExactMatch,
                                                     "*", StringMatchSyntax.WildCard);
            MAUIUtilities.GetControl <StaticControl>(addReasonWindow,
                                                     ResourceNames.AddReason.StateLabelText, StringMatchSyntax.ExactMatch,
                                                     "*", StringMatchSyntax.WildCard);
            MAUIUtilities.GetControl <StaticControl>(addReasonWindow,
                                                     ResourceNames.AddReason.ZipLabelText, StringMatchSyntax.ExactMatch,
                                                     "*", StringMatchSyntax.WildCard);
            MAUIUtilities.GetControl <StaticControl>(addReasonWindow,
                                                     ResourceNames.AddReason.HomeNumberLabelText, StringMatchSyntax.ExactMatch,
                                                     "*", StringMatchSyntax.WildCard);
            MAUIUtilities.GetControl <StaticControl>(addReasonWindow,
                                                     ResourceNames.AddReason.WorkNumberLabelText, StringMatchSyntax.ExactMatch,
                                                     "*", StringMatchSyntax.WildCard);
            MAUIUtilities.GetControl <StaticControl>(addReasonWindow,
                                                     ResourceNames.AddReason.CellNumberLabelText, StringMatchSyntax.ExactMatch,
                                                     "*", StringMatchSyntax.WildCard);
            MAUIUtilities.GetControl <StaticControl>(addReasonWindow,
                                                     ResourceNames.AddReason.SSNLabelText, StringMatchSyntax.ExactMatch,
                                                     "*", StringMatchSyntax.WildCard);
            MAUIUtilities.GetControl <StaticControl>(addReasonWindow,
                                                     ResourceNames.AddReason.EMailLabelText, StringMatchSyntax.ExactMatch,
                                                     "*", StringMatchSyntax.WildCard);
            MAUIUtilities.GetControl <StaticControl>(addReasonWindow,
                                                     ResourceNames.AddReason.ReasonCodeLabelText, StringMatchSyntax.ExactMatch,
                                                     "*", StringMatchSyntax.WildCard);
            MAUIUtilities.GetControl <StaticControl>(addReasonWindow,
                                                     ResourceNames.AddReason.DescriptionLabelText, StringMatchSyntax.ExactMatch,
                                                     "*", StringMatchSyntax.WildCard);
        }
示例#13
0
 public AddReasonAdapter()
 {
     addReasonWindow = MAUIUtilities.GetWindow(BankWorkBench.Application, ResourceNames.AddReason.WindowTitle);
 }
 public AddCustomerToQueueAdapter()
 {
     addCustomerToQueueWindow = MAUIUtilities.GetWindow(BankWorkBench.Application, ResourceNames.AddCustomerToQueue.WindowTitle);
 }
示例#15
0
        public void CheckPresenceOfControls()
        {
            //TextBoxes
            MAUIUtilities.GetControl <TextBox>(findCustomerResultsWindow,
                                               ResourceNames.FindCustomerResults.FirstNameTextBoxName);
            MAUIUtilities.GetControl <TextBox>(findCustomerResultsWindow,
                                               ResourceNames.FindCustomerResults.LastNameTextBoxName);
            MAUIUtilities.GetControl <TextBox>(findCustomerResultsWindow,
                                               ResourceNames.FindCustomerResults.MiddleInitialTextBoxName);
            MAUIUtilities.GetControl <TextBox>(findCustomerResultsWindow,
                                               ResourceNames.FindCustomerResults.StreetTextBoxName);
            MAUIUtilities.GetControl <TextBox>(findCustomerResultsWindow,
                                               ResourceNames.FindCustomerResults.CityTextBoxName);
            MAUIUtilities.GetControl <TextBox>(findCustomerResultsWindow,
                                               ResourceNames.FindCustomerResults.StateTextBoxName);
            MAUIUtilities.GetControl <TextBox>(findCustomerResultsWindow,
                                               ResourceNames.FindCustomerResults.ZipTextBoxName);
            MAUIUtilities.GetControl <TextBox>(findCustomerResultsWindow,
                                               ResourceNames.FindCustomerResults.HomeNumberTextBoxName);
            MAUIUtilities.GetControl <TextBox>(findCustomerResultsWindow,
                                               ResourceNames.FindCustomerResults.WorkNumberTextBoxName);
            MAUIUtilities.GetControl <TextBox>(findCustomerResultsWindow,
                                               ResourceNames.FindCustomerResults.CellNumberTextBoxName);
            MAUIUtilities.GetControl <TextBox>(findCustomerResultsWindow,
                                               ResourceNames.FindCustomerResults.SSNTextBoxName);
            MAUIUtilities.GetControl <TextBox>(findCustomerResultsWindow,
                                               ResourceNames.FindCustomerResults.EMailTextBoxName);

            //List View
            MAUIUtilities.GetControl <DataGridView>(findCustomerResultsWindow,
                                                    ResourceNames.FindCustomerResults.CustomerDataGridViewName);

            //Buttons
            MAUIUtilities.GetControl <Button>(findCustomerResultsWindow,
                                              ResourceNames.FindCustomerResults.QueueForServiceButtonName);
            //MAUIUtilities.GetControl<Button>(findCustomerResultsWindow,
            //    ResourceNames.FindCustomerResults.SelfServiceButtonName);
            MAUIUtilities.GetControl <Button>(findCustomerResultsWindow,
                                              ResourceNames.FindCustomerResults.CancelButtonName);

            //Labels
            MAUIUtilities.GetControl <StaticControl>(findCustomerResultsWindow,
                                                     ResourceNames.FindCustomerResults.FirstNameLabelText, StringMatchSyntax.ExactMatch,
                                                     "*", StringMatchSyntax.WildCard);
            MAUIUtilities.GetControl <StaticControl>(findCustomerResultsWindow,
                                                     ResourceNames.FindCustomerResults.LastNameLabelText, StringMatchSyntax.ExactMatch,
                                                     "*", StringMatchSyntax.WildCard);
            MAUIUtilities.GetControl <StaticControl>(findCustomerResultsWindow,
                                                     ResourceNames.FindCustomerResults.MiddleInitialLabelText, StringMatchSyntax.ExactMatch,
                                                     "*", StringMatchSyntax.WildCard);
            MAUIUtilities.GetControl <StaticControl>(findCustomerResultsWindow,
                                                     ResourceNames.FindCustomerResults.StreetLabelText, StringMatchSyntax.ExactMatch,
                                                     "*", StringMatchSyntax.WildCard);
            MAUIUtilities.GetControl <StaticControl>(findCustomerResultsWindow,
                                                     ResourceNames.FindCustomerResults.CityLabelText, StringMatchSyntax.ExactMatch,
                                                     "*", StringMatchSyntax.WildCard);
            MAUIUtilities.GetControl <StaticControl>(findCustomerResultsWindow,
                                                     ResourceNames.FindCustomerResults.StateLabelText, StringMatchSyntax.ExactMatch,
                                                     "*", StringMatchSyntax.WildCard);
            MAUIUtilities.GetControl <StaticControl>(findCustomerResultsWindow,
                                                     ResourceNames.FindCustomerResults.ZipLabelText, StringMatchSyntax.ExactMatch,
                                                     "*", StringMatchSyntax.WildCard);
            MAUIUtilities.GetControl <StaticControl>(findCustomerResultsWindow,
                                                     ResourceNames.FindCustomerResults.HomeNumberLabelText, StringMatchSyntax.ExactMatch,
                                                     "*", StringMatchSyntax.WildCard);
            MAUIUtilities.GetControl <StaticControl>(findCustomerResultsWindow,
                                                     ResourceNames.FindCustomerResults.WorkNumberLabelText, StringMatchSyntax.ExactMatch,
                                                     "*", StringMatchSyntax.WildCard);
            MAUIUtilities.GetControl <StaticControl>(findCustomerResultsWindow,
                                                     ResourceNames.FindCustomerResults.CellNumberLabelText, StringMatchSyntax.ExactMatch,
                                                     "*", StringMatchSyntax.WildCard);
            MAUIUtilities.GetControl <StaticControl>(findCustomerResultsWindow,
                                                     ResourceNames.FindCustomerResults.SSNLabelText, StringMatchSyntax.ExactMatch,
                                                     "*", StringMatchSyntax.WildCard);
            MAUIUtilities.GetControl <StaticControl>(findCustomerResultsWindow,
                                                     ResourceNames.FindCustomerResults.EMailLabelText, StringMatchSyntax.ExactMatch,
                                                     "*", StringMatchSyntax.WildCard);
        }
        public void CheckPresenceOfControls()
        {
            //TextBoxes
            //MAUIUtilities.GetControl<TextBox>(addCustomerToQueueWindow,
            //         ResourceNames.AddCustomerToQueue.CustomerIDTextBoxName);
            MAUIUtilities.GetControl <TextBox>(addCustomerToQueueWindow,
                                               ResourceNames.AddCustomerToQueue.FirstNameTextBoxName);
            MAUIUtilities.GetControl <TextBox>(addCustomerToQueueWindow,
                                               ResourceNames.AddCustomerToQueue.LastNameTextBoxName);
            MAUIUtilities.GetControl <TextBox>(addCustomerToQueueWindow,
                                               ResourceNames.AddCustomerToQueue.MiddleInitialTextBoxName);
            MAUIUtilities.GetControl <TextBox>(addCustomerToQueueWindow,
                                               ResourceNames.AddCustomerToQueue.StreetTextBoxName);
            MAUIUtilities.GetControl <TextBox>(addCustomerToQueueWindow,
                                               ResourceNames.AddCustomerToQueue.CityTextBoxName);
            MAUIUtilities.GetControl <TextBox>(addCustomerToQueueWindow,
                                               ResourceNames.AddCustomerToQueue.StateTextBoxName);
            MAUIUtilities.GetControl <TextBox>(addCustomerToQueueWindow,
                                               ResourceNames.AddCustomerToQueue.ZipTextBoxName);
            MAUIUtilities.GetControl <TextBox>(addCustomerToQueueWindow,
                                               ResourceNames.AddCustomerToQueue.HomeNumberTextBoxName);
            MAUIUtilities.GetControl <TextBox>(addCustomerToQueueWindow,
                                               ResourceNames.AddCustomerToQueue.WorkNumberTextBoxName);
            MAUIUtilities.GetControl <TextBox>(addCustomerToQueueWindow,
                                               ResourceNames.AddCustomerToQueue.CellNumberTextBoxName);
            MAUIUtilities.GetControl <TextBox>(addCustomerToQueueWindow,
                                               ResourceNames.AddCustomerToQueue.SSNTextBoxName);
            MAUIUtilities.GetControl <TextBox>(addCustomerToQueueWindow,
                                               ResourceNames.AddCustomerToQueue.EMailTextBoxName);

            //Button
            //MAUIUtilities.GetControl<Button>(addCustomerToQueueWindow,
            //         ResourceNames.AddCustomerToQueue.QueueForServiceButtonName);
            //MAUIUtilities.GetControl<Button>(addCustomerToQueueWindow,
            //         ResourceNames.AddCustomerToQueue.SelfServiceButtonName);
            MAUIUtilities.GetControl <Button>(addCustomerToQueueWindow,
                                              ResourceNames.AddCustomerToQueue.OkButtonName);
            MAUIUtilities.GetControl <Button>(addCustomerToQueueWindow,
                                              ResourceNames.AddCustomerToQueue.CancelButtonName);

            //Label
            //MAUIUtilities.GetControl<StaticControl>(addCustomerToQueueWindow,
            //    ResourceNames.AddCustomerToQueue.CustomerIDLabelName, StringMatchSyntax.ExactMatch,
            //    "*", StringMatchSyntax.WildCard);
            MAUIUtilities.GetControl <StaticControl>(addCustomerToQueueWindow,
                                                     ResourceNames.AddCustomerToQueue.FirstNameLabelText, StringMatchSyntax.ExactMatch,
                                                     "*", StringMatchSyntax.WildCard);
            MAUIUtilities.GetControl <StaticControl>(addCustomerToQueueWindow,
                                                     ResourceNames.AddCustomerToQueue.LastNameLabelText, StringMatchSyntax.ExactMatch,
                                                     "*", StringMatchSyntax.WildCard);
            MAUIUtilities.GetControl <StaticControl>(addCustomerToQueueWindow,
                                                     ResourceNames.AddCustomerToQueue.MiddleInitialLabelText, StringMatchSyntax.ExactMatch,
                                                     "*", StringMatchSyntax.WildCard);
            MAUIUtilities.GetControl <StaticControl>(addCustomerToQueueWindow,
                                                     ResourceNames.AddCustomerToQueue.StreetLabelText, StringMatchSyntax.ExactMatch,
                                                     "*", StringMatchSyntax.WildCard);
            MAUIUtilities.GetControl <StaticControl>(addCustomerToQueueWindow,
                                                     ResourceNames.AddCustomerToQueue.CityLabelText, StringMatchSyntax.ExactMatch,
                                                     "*", StringMatchSyntax.WildCard);
            MAUIUtilities.GetControl <StaticControl>(addCustomerToQueueWindow,
                                                     ResourceNames.AddCustomerToQueue.StateLabelText, StringMatchSyntax.ExactMatch,
                                                     "*", StringMatchSyntax.WildCard);
            MAUIUtilities.GetControl <StaticControl>(addCustomerToQueueWindow,
                                                     ResourceNames.AddCustomerToQueue.ZipLabelText, StringMatchSyntax.ExactMatch,
                                                     "*", StringMatchSyntax.WildCard);
            MAUIUtilities.GetControl <StaticControl>(addCustomerToQueueWindow,
                                                     ResourceNames.AddCustomerToQueue.HomeNumberLabelText, StringMatchSyntax.ExactMatch,
                                                     "*", StringMatchSyntax.WildCard);
            MAUIUtilities.GetControl <StaticControl>(addCustomerToQueueWindow,
                                                     ResourceNames.AddCustomerToQueue.WorkNumberLabelText, StringMatchSyntax.ExactMatch,
                                                     "*", StringMatchSyntax.WildCard);
            MAUIUtilities.GetControl <StaticControl>(addCustomerToQueueWindow,
                                                     ResourceNames.AddCustomerToQueue.CellNumberLabelText, StringMatchSyntax.ExactMatch,
                                                     "*", StringMatchSyntax.WildCard);
            MAUIUtilities.GetControl <StaticControl>(addCustomerToQueueWindow,
                                                     ResourceNames.AddCustomerToQueue.SSNLabelText, StringMatchSyntax.ExactMatch,
                                                     "*", StringMatchSyntax.WildCard);
            MAUIUtilities.GetControl <StaticControl>(addCustomerToQueueWindow,
                                                     ResourceNames.AddCustomerToQueue.EMailLabelText, StringMatchSyntax.ExactMatch,
                                                     "*", StringMatchSyntax.WildCard);
        }
示例#17
0
 public FindCustomerResultsAdapter()
 {
     findCustomerResultsWindow = MAUIUtilities.GetWindow(BankWorkBench.Application,
                                                         ResourceNames.FindCustomerResults.WindowTitle);
 }
示例#18
0
 public ShellAdapter()
 {
     shellWindow = MAUIUtilities.GetWindow(BankWorkBench.Application,
                                           ResourceNames.Shell.WindowTitle);
 }
示例#19
0
 private void ResetFindCustomerResultsWindow()
 {
     Sleeper.Delay(500);
     findCustomerResultsWindow = MAUIUtilities.GetWindow(BankWorkBench.Application,
                                                         ResourceNames.FindCustomerResults.WindowTitle, false);
 }
示例#20
0
 public void CheckForServiceCustomerLink()
 {
     //Buttons
     MAUIUtilities.GetControl <Button>(shellWindow,
                                       ResourceNames.Shell.ServiceCustomerButtonName);
 }
 private void ResetFindCustomerWindow()
 {
     findCustomerWindow = MAUIUtilities.GetWindow(BankWorkBench.Application,
                                                  ResourceNames.FindCustomer.WindowTitle, false);
 }