示例#1
0
 /// <summary>
 /// Method overloading. This function is for regression test only
 /// </summary>
 /// <param name="sharingRightName"></param>
 /// <param name="relation"></param>
 /// <param name="time"></param>
 public void CustomerNormineeName(string sharingRightName, string relationship, string time)
 {
     NormineeNameElement.SendKeys(sharingRightName);
     RelationshipNameElement.SendKeys(relationship);
     LiveThereElement.SendKeys(time);
     GenericObjects.GoToNextPage();
 }
示例#2
0
        public void AdminCanSelectStandingOrder()
        {
            var selectByText = "Standing Order";

            Browser.SelectWithVisibleText(StandingOrderElement, selectByText);
            GenericObjects.GoToNextPage();
        }
示例#3
0
        public void ApplicationForm()
        {
            var appForm = "Application Form";

            Browser.SelectWithVisibleText(DropDownListElements, appForm);
            GenericObjects.GoToNextPage();
        }
示例#4
0
        public void BalanceTransferAndMissingPayment()
        {
            var selectByText = "Balance Transfers or Missing Payment";

            Browser.SelectWithVisibleText(DropDownListElements, selectByText);
            GenericObjects.GoToNextPage();
        }
示例#5
0
        public void AdminCanLocateAdvisorPayement()
        {
            var selectByText = "No";

            Browser.SelectWithVisibleText(DropDownListElements, selectByText);
            GenericObjects.GoToNextPage();
        }
示例#6
0
        public void VoluntarySale()
        {
            var voluntarySale = "Voluntary Sale";

            Browser.SelectWithVisibleText(VolElement, voluntarySale);
            GenericObjects.GoToNextPage();
        }
示例#7
0
        public void PostOfficeOption()
        {
            var selectPost = "No - send by post";

            Browser.SelectWithVisibleText(PostageElement, selectPost);
            GenericObjects.GoToNextPage();
        }
示例#8
0
 public void SwitchBackToTenancyEnforcementWindow(string refNUmber)
 {
     Browser.SwitchToNewWindow();
     CustomerSharingElement.SendKeys(refNUmber);
     Browser.SelectWithVisibleText(SafeGuardElement, saguardOption);
     GenericObjects.GoToNextPage();
 }
示例#9
0
 public void InputFurtherMessage(string message)
 {
     RequiredInfo.SendKeys(message);
     GenericObjects.GoToNextPage();
     Browser.Wait(TimeSpan.FromSeconds(3));
     Browser.CloseOtherWindows("Tenancy Enforcement - Start Dialog");
 }
示例#10
0
        public void SelectAmendFromTheList()
        {
            var amend = "Amend";

            Browser.SelectWithVisibleText(DropDownListElements, amend);
            GenericObjects.GoToNextPage();
        }
示例#11
0
        public void DirectDebitFroTheList()
        {
            var directDebit = "Direct Debit";

            Browser.SelectWithVisibleText(DropDownListElements, directDebit);
            GenericObjects.GoToNextPage();
        }
示例#12
0
        public void SelectApplicationChoosenArea()
        {
            var option = "No";

            Browser.SelectWithVisibleText(OptionElements, option);
            GenericObjects.GoToNextPage();
        }
示例#13
0
        public void SharingRight()
        {
            var yes = "Yes";

            Browser.SelectWithVisibleText(CustomerSharingElement, yes);
            GenericObjects.GoToNextPage();
        }
示例#14
0
 public void CustomerNormineeName()
 {
     NormineeNameElement.SendKeys(_name);
     RelationshipNameElement.SendKeys(_relationship);
     LiveThereElement.SendKeys(_timeAtAddress);
     GenericObjects.GoToNextPage();
 }
示例#15
0
        public void SelectContactTypeFromTheOption()
        {
            GenericObjects.GoToNextPage();
            var newRepair = "New Repair";

            Browser.SelectWithVisibleText(NewRepairElement, newRepair);

            GenericObjects.GoToNextPage();
        }
示例#16
0
 public bool WarningMessage(string eligibilityAdviced)
 {
     if (EligibilityMessageElement.Text.Equals(eligibilityAdviced))
     {
         GenericObjects.ClickNextButtonTwiceToGoToNextPage();
         return(true);
     }
     return(false);
 }
示例#17
0
        public void PaymentAmountOptions()
        {
            var proposedAmountOption = "Yes";

            Initialized();
            Amount.InputTextIntoTheField(_amount);

            Browser.SelectWithVisibleText(VolElement, proposedAmountOption);
            GenericObjects.ClickNextButtonTwiceToGoToNextPage();
        }
示例#18
0
 /// <summary>
 /// Part of regrssion test
 /// </summary>
 public void FinishPaymentDialogWindow()
 {
     if (DialogTitle.AtDialogWindow)
     {
         GenericObjects.GoToNextPage();
         CustomerAccountIspreselected();
         GenericObjects.GoToNextPage();
         DirectDebitFroTheList();
         SelectAmendFromTheList();
         PaymentAmountOptions();
         CustomerServiceCanAdFurherInformation(CustomerInformation.CommentInput);
         GenericObjects.GoToNextPage();
         Browser.CloseOtherWindows("Tenancy Exists");
     }
 }
示例#19
0
 public void FinishRightToBuyDialogWindow()
 {
     if (DialogTitle.AtDialogWindow)
     {
         GenericObjects.GoToNextPage();
         SelectNewApplication();
         VoluntarySale();
         SocialBehaviour();
         WarningMessage(CustomerInformation.EligibilityAdviced);
         SharingRight();
         CustomerNormineeName(CustomerInformation.CustomerNorminee,
                              CustomerInformation.Relative, CustomerInformation.TimeAtTheAddress);
         ApplicationForm();
         PostOfficeOption();
         InputAddtionalInformation(CustomerInformation.CommentInput);
         Browser.CloseOtherWindows("Right to Buy - Start Dialog");
     }
 }
示例#20
0
        public void CustomerAmountAndDateOfPayment(string amount, string date)
        {
            PaymentElement.SendKeys(amount);

            DatePickerElement.Click();
            foreach (var dateElement in DateElementsData)
            {
                if (dateElement.Text.Equals(date))
                {
                    dateElement.Click();
                    break;
                }
            }

            Browser.SelectWithVisibleText(RelationshipNameElement, receipt);

            GenericObjects.GoToNextPage();
        }
示例#21
0
        //public NeighbourhoodsDialogWindowPage AddRequiredInformationmWith(string v)
        //{
        //    return new NeighbourhoodsDialogWindowPage(v);
        //}

        public void MessageDisplayCorrectlyAndDialogWindowIsClosed()
        {
            var proptMessage = TGPLabel.BusinessEmail.ToString();

            GenericObjects.GoToNextPage();

            if (PropmptMessageWithEmail.Text != null)
            {
                var trueMessage = PropmptMessageWithEmail.Text.Contains(proptMessage);
                trueMessage = true;
            }
            else
            {
                string.IsNullOrEmpty(proptMessage);
            }

            LiveThereElement.SendKeys(CustomerInformation.CommentInput);
            Browser.CloseOtherWindows("My Property and Neighbourhood Start Dialog");
        }
示例#22
0
 public void CanGoToNextPage()
 {
     GenericObjects.GoToNextPage();
 }
示例#23
0
 public void AddFurtherInformation(string comment)
 {
     DropDownListElements.SendKeys(comment);
     GenericObjects.GoToNextPage();
 }
示例#24
0
 // this method is called when to select from the list
 private void SelectDesireOptionFromTheList(string title)
 {
     Browser.SelectWithVisibleText(DropDownListElements, title);
     GenericObjects.GoToNextPage();
 }
示例#25
0
 public void SocialBehaviour()
 {
     RadioElement.Click();
     GenericObjects.GoToNextPage();
 }
示例#26
0
 private static bool CheckGenericObjects(GenericObjects v)
 {
     return(v.i.t == 44 && v.s.t == "abc" && v.ll.t.t == -44 && v.ccc.t.t.t == 'Z');
 }
示例#27
0
 public void CanClickNextButton()
 {
     GenericObjects.GoToNextPage();
 }
示例#28
0
 public void InputAddtionalInformation(string info)
 {
     DropDownListElements.SendKeys(info);
     GenericObjects.ClickNextButtonTwiceToGoToNextPage();
 }
示例#29
0
 public void AccountEnquiriesNextButton()
 {
     GenericObjects.ClickNextButtonTwiceToGoToNextPage();
 }
示例#30
0
 public void AdminFinishedDialogWindow()
 {
     GenericObjects.ClickNextButtonTwiceToGoToNextPage();
     Browser.CloseOtherWindows("Account Enquiries - Start Dialog");
 }