Example #1
0
        public void Create_New_Enquiry_with_Child_Basic_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 = 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);
        }
Example #2
0
        public void Create_New_Enquiry_With_Inactive_Status()
        {
            //Login
            Navigate_To_Enquiry();
            EnquiryDetails enquirydetails = new EnquiryDetails();

            enquirydetails.AddButtonClick();

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

            enquirydetails.ClickSaveButton();
            enquirydetails.WaitForStatus();
            enquirydetails.SelectAdvancedfilter("Inactive", Surname);
        }
Example #3
0
        public void Create_New_Enquiry_with_Enquirer()
        {
            //Login
            Navigate_To_Enquiry();
            EnquiryDetails enquirydetails = new EnquiryDetails();

            enquirydetails.AddButtonClick();

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

            enquirydetails = enquirydetails.ClickOkButton();

            enquirydetails.ClickSaveButton();
            enquirydetails.WaitForStatus();
            enquirydetails.SearchByName(surname);
        }
Example #4
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);
        }
Example #5
0
        public void Create_New_Enquiry_with_Notes()
        {
            //Login
            Navigate_To_Enquiry();
            EnquiryDetails enquirydetails = new EnquiryDetails();

            enquirydetails.AddButtonClick();

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

            enquirydetails = enquirydetails.ClickOkButton();
            String NotesEntered = enquirydetails.SetEnquirerNotes();

            enquirydetails.ClickSaveButton();
            enquirydetails.WaitForStatus();
            enquirydetails.SearchByName(Surname);
            String getNotes = enquirydetails.getEnquirerNotes();

            Assert.AreEqual(NotesEntered, getNotes);
        }