Ejemplo n.º 1
0
        public void Create_New_Enquiry_with_Existing_Enquirer()
        {
            //Login
            Navigate_To_Enquiry();
            EnquiryDetails enquirydetails = new EnquiryDetails();

            enquirydetails.AddButtonClick();

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

            enquirydetails = enquirydetails.ClickOkButton();

            enquirydetails.ClickSaveButton();
            enquirydetails.WaitForStatus();

            EnquiryDetails newEnquirydetails = new EnquiryDetails();

            newEnquirydetails.AddButtonClick();
            newEnquirydetails.AddEnquiryContactButtonClick();
            newEnquirydetails = newEnquirydetails.SearchEnquirerByName(surname);
            newEnquirydetails.SetEnquirerTitle("Mr");
            newEnquirydetails.SetEnquirerGender("Male");
            newEnquirydetails.SetEnquirerOccupation("Accounting");
            newEnquirydetails = newEnquirydetails.ClickOkButton();
            newEnquirydetails.ClickSaveButton();
            newEnquirydetails.WaitForStatus();
            newEnquirydetails.SearchByName(surname);
        }