예제 #1
0
 public void CustomerNormineeName()
 {
     NormineeNameElement.SendKeys(_name);
     RelationshipNameElement.SendKeys(_relationship);
     LiveThereElement.SendKeys(_timeAtAddress);
     GenericObjects.GoToNextPage();
 }
예제 #2
0
        public void AdminCanLocateAdvisorPayement()
        {
            var selectByText = "No";

            Browser.SelectWithVisibleText(DropDownListElements, selectByText);
            GenericObjects.GoToNextPage();
        }
예제 #3
0
        public void AdminCanSelectStandingOrder()
        {
            var selectByText = "Standing Order";

            Browser.SelectWithVisibleText(StandingOrderElement, selectByText);
            GenericObjects.GoToNextPage();
        }
예제 #4
0
 public void InputFurtherMessage(string message)
 {
     RequiredInfo.SendKeys(message);
     GenericObjects.GoToNextPage();
     Browser.Wait(TimeSpan.FromSeconds(3));
     Browser.CloseOtherWindows("Tenancy Enforcement - Start Dialog");
 }
예제 #5
0
        public void BalanceTransferAndMissingPayment()
        {
            var selectByText = "Balance Transfers or Missing Payment";

            Browser.SelectWithVisibleText(DropDownListElements, selectByText);
            GenericObjects.GoToNextPage();
        }
예제 #6
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();
 }
예제 #7
0
 public void SwitchBackToTenancyEnforcementWindow(string refNUmber)
 {
     Browser.SwitchToNewWindow();
     CustomerSharingElement.SendKeys(refNUmber);
     Browser.SelectWithVisibleText(SafeGuardElement, saguardOption);
     GenericObjects.GoToNextPage();
 }
예제 #8
0
        public void SelectAmendFromTheList()
        {
            var amend = "Amend";

            Browser.SelectWithVisibleText(DropDownListElements, amend);
            GenericObjects.GoToNextPage();
        }
예제 #9
0
        public void ApplicationForm()
        {
            var appForm = "Application Form";

            Browser.SelectWithVisibleText(DropDownListElements, appForm);
            GenericObjects.GoToNextPage();
        }
예제 #10
0
        public void PostOfficeOption()
        {
            var selectPost = "No - send by post";

            Browser.SelectWithVisibleText(PostageElement, selectPost);
            GenericObjects.GoToNextPage();
        }
예제 #11
0
        public void DirectDebitFroTheList()
        {
            var directDebit = "Direct Debit";

            Browser.SelectWithVisibleText(DropDownListElements, directDebit);
            GenericObjects.GoToNextPage();
        }
예제 #12
0
        public void VoluntarySale()
        {
            var voluntarySale = "Voluntary Sale";

            Browser.SelectWithVisibleText(VolElement, voluntarySale);
            GenericObjects.GoToNextPage();
        }
예제 #13
0
        public void SelectApplicationChoosenArea()
        {
            var option = "No";

            Browser.SelectWithVisibleText(OptionElements, option);
            GenericObjects.GoToNextPage();
        }
예제 #14
0
        public void SharingRight()
        {
            var yes = "Yes";

            Browser.SelectWithVisibleText(CustomerSharingElement, yes);
            GenericObjects.GoToNextPage();
        }
예제 #15
0
        public void SelectContactTypeFromTheOption()
        {
            GenericObjects.GoToNextPage();
            var newRepair = "New Repair";

            Browser.SelectWithVisibleText(NewRepairElement, newRepair);

            GenericObjects.GoToNextPage();
        }
예제 #16
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");
     }
 }
예제 #17
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();
        }
예제 #18
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");
     }
 }
예제 #19
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");
        }
예제 #20
0
 public void SelectLandLordRefrence()
 {
     GenericObjects.ClickNextButtonTwiceToGoToNextPage();
     Browser.SelectWithVisibleText(DropDownListElements, optionList);
     GenericObjects.GoToNextPage();
 }
예제 #21
0
 public void CanGoToNextPage()
 {
     GenericObjects.GoToNextPage();
 }
예제 #22
0
 public void AddFurtherInformation(string comment)
 {
     DropDownListElements.SendKeys(comment);
     GenericObjects.GoToNextPage();
 }
예제 #23
0
 // this method is called when to select from the list
 private void SelectDesireOptionFromTheList(string title)
 {
     Browser.SelectWithVisibleText(DropDownListElements, title);
     GenericObjects.GoToNextPage();
 }
예제 #24
0
 public void SocialBehaviour()
 {
     RadioElement.Click();
     GenericObjects.GoToNextPage();
 }
예제 #25
0
 public void CustomerServiceCanAdFurherInformation(string comment)
 {
     CommentBox.SendKeys(comment);
     GenericObjects.GoToNextPage();
 }
예제 #26
0
 public void CanClickNextButton()
 {
     GenericObjects.GoToNextPage();
 }
예제 #27
0
 public void StartDialogByClickNextButton()
 {
     GenericObjects.GoToNextPage();
 }
예제 #28
0
 public void SelectDomesticsAbuseFromTheList()
 {
     GenericObjects.GoToNextPage();
     Browser.SelectWithVisibleText(DropDownListElements, domAbuse);
     GenericObjects.GoToNextPage();
 }
예제 #29
0
 public void CanGoToResolutionLink()
 {
     GenericObjects.GoToNextPage();
     LinkToResolutionPage.Click();
 }
예제 #30
0
 public void SelectLandLordRequestForm()
 {
     Browser.SelectWithVisibleText(DropDownListElements, landLordRequest);
     GenericObjects.GoToNextPage();
 }