Beispiel #1
0
        public void Create_New_Enquiry_With_Additional_Details()
        {
            //Login
            Navigate_To_Enquiry();
            EnquiryDetails enquirydetails = new EnquiryDetails();

            enquirydetails.AddButtonClick();

            //Add Enquirer details
            enquirydetails.AddEnquiryContactButtonClick();
            enquirydetails.AddNewEnquirerContactButtonClick();
            enquirydetails.SetEnquirerForename();
            String Surname = enquirydetails.SetEnquirerSurname();

            enquirydetails.SetEnquirerTitle("Mr");
            enquirydetails.SetEnquirerGender("Male");
            enquirydetails.SetEnquirerOccupation("Accounting");
            enquirydetails.ClickPhoneButton();
            enquirydetails.SetPhone();
            enquirydetails.SetPhoneLocationType("Home");
            enquirydetails.ClickEmailButton();
            enquirydetails.SetEmailAddress();
            enquirydetails.SetEmailType("Home");
            enquirydetails.ClickOkButton();

            //Add Child details
            enquirydetails.AddChildButtonClick();
            enquirydetails.SetChildForename();
            enquirydetails.SetChildSurname();
            enquirydetails.SetChildGender("Male");
            enquirydetails.SetChildDOB("01/01/2009");
            enquirydetails.ClickOkButton();
            enquirydetails.ClickSaveButton();
            enquirydetails.WaitForStatus();
            enquirydetails.SearchByName(Surname);
        }