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); }
public void Create_New_Enquiry_with_Child_Realationship() { //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.SetChildRelationship("Parent"); enquirydetails.ClickOkButton(); enquirydetails.ClickSaveButton(); enquirydetails.WaitForStatus(); enquirydetails.SearchByName(Surname); }
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); }
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); }
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); }
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); }