public void addnoteforlead() { string[] username = null; string[] password = null; var oXMLData = new XMLParse(); oXMLData.LoadXML("../../Config/OrganizationSetting.xml"); username = oXMLData.getData("settings/Credentials", "username"); password = oXMLData.getData("settings/Credentials", "password"); //Initializing the objects var loginHelper = new LoginHelper(GetWebDriver()); var AddEventsForLeadHelper = new AddEventsForLeadHelper(GetWebDriver()); //Variable var NoteSubject = "Test Note" + RandomNumber(1, 99); //Login with valid username and password Login(username[0], password[0]); Console.WriteLine("Logged in as: " + username[0] + " / " + password[0]); //Verify Page title VerifyTitle("Dashboard"); Console.WriteLine("Redirected at Dashboard screen."); //Click on Leads AddEventsForLeadHelper.ClickElement("ClickOnLeads"); //GetWebDriver().Navigate().GoToUrl("http://zaspire.com/infoaspire/leads"); //AddEventsForLeadHelper.WaitForWorkAround(7000); //Open Lead AddEventsForLeadHelper.ClickElement("FirstLeadNameLink"); //Click on Move over AddEventsForLeadHelper.ClickElement("MoveHover"); AddEventsForLeadHelper.WaitForWorkAround(5000); //################### ADD NOTE ######################### //Click on Add Note AddEventsForLeadHelper.ClickElement("ClickOnAddNote"); //Enter Note Subject AddEventsForLeadHelper.TypeText("EnterNoteSubject", NoteSubject); //Enter Note Description AddEventsForLeadHelper.TypeText("EnterNoteDescription", "This is Note Description"); //Upload File String Filename = GetPath() + "C:\\Users\\Public\\Pictures\\Sample Pictures\\image\\Tulips.jpeg"; AddEventsForLeadHelper.Upload("SelectNoteFile", Filename); AddEventsForLeadHelper.WaitForWorkAround(10000); //Click On Save AddEventsForLeadHelper.ClickElement("ClickOnSaveNote"); AddEventsForLeadHelper.WaitForWorkAround(7000); }
public void addlogcallforlead() { string[] username = null; string[] password = null; var oXMLData = new XMLParse(); oXMLData.LoadXML("../../Config/OrganizationSetting.xml"); username = oXMLData.getData("settings/Credentials", "username"); password = oXMLData.getData("settings/Credentials", "password"); //Initializing the objects var loginHelper = new LoginHelper(GetWebDriver()); var AddEventsForLeadHelper = new AddEventsForLeadHelper(GetWebDriver()); //Variable var CallSubject = "Test Call" + RandomNumber(1, 99); //Login with valid username and password Login(username[0], password[0]); Console.WriteLine("Logged in as: " + username[0] + " / " + password[0]); //Verify Page title VerifyTitle("Dashboard"); Console.WriteLine("Redirected at Dashboard screen."); //Click on Leads AddEventsForLeadHelper.ClickElement("ClickOnLeads"); //GetWebDriver().Navigate().GoToUrl("http://zaspire.com/infoaspire/leads"); //AddEventsForLeadHelper.WaitForWorkAround(7000); //Open Lead AddEventsForLeadHelper.ClickElement("FirstLeadNameLink"); //Click on Move over AddEventsForLeadHelper.ClickElement("MoveHover"); AddEventsForLeadHelper.WaitForWorkAround(10000); //#################### ADD LOG CALL ##################################### //Click On Log Call AddEventsForLeadHelper.ClickElement("ClickOnAddCall"); //Enter Call Subject AddEventsForLeadHelper.TypeText("EnterCallSubject", CallSubject); //Select Call Type AddEventsForLeadHelper.Select("SelectCallType", "Inbound"); //Enter Call Date AddEventsForLeadHelper.TypeText("EnterCallDate", ""); //Select Call From //AddEventsForLeadHelper.Select("SelectCallFrom", ""); //Select Call To //AddEventsForLeadHelper.Select("SelectCallTo", ""); //Enter Call From Number AddEventsForLeadHelper.TypeText("EnterCallFromNumber", "8713120369"); //Enter Call To Number AddEventsForLeadHelper.TypeText("EnterCallToNumber", "9856512369"); //Enter Call Hours AddEventsForLeadHelper.TypeText("EnterCallHours", "00"); //Enter Call Minutes AddEventsForLeadHelper.TypeText("EnterCallMins", "25"); //Enter Call Secs AddEventsForLeadHelper.TypeText("EnterCallSecs", "45"); //Click on Description Link AddEventsForLeadHelper.ClickElement("ClickOnDescriptionLink"); //Enter Call Description AddEventsForLeadHelper.TypeText("EnterCallDescription", "This is Log Call Description"); //Click On Save AddEventsForLeadHelper.ClickElement("ClickOnSaveLogCall"); AddEventsForLeadHelper.WaitForWorkAround(7000); }
public void addtaskforlead() { string[] username = null; string[] password = null; var oXMLData = new XMLParse(); oXMLData.LoadXML("../../Config/OrganizationSetting.xml"); username = oXMLData.getData("settings/Credentials", "username"); password = oXMLData.getData("settings/Credentials", "password"); //Initializing the objects var loginHelper = new LoginHelper(GetWebDriver()); var AddEventsForLeadHelper = new AddEventsForLeadHelper(GetWebDriver()); //Variable var TaskSubject = "Test Task" + RandomNumber(1, 99); var TaskLocation = "Test City" + RandomNumber(1, 99); //Login with valid username and password Login(username[0], password[0]); Console.WriteLine("Logged in as: " + username[0] + " / " + password[0]); //Verify Page title VerifyTitle("Dashboard"); Console.WriteLine("Redirected at Dashboard screen."); //Click on Leads AddEventsForLeadHelper.ClickElement("ClickOnLeads"); //GetWebDriver().Navigate().GoToUrl("http://zaspire.com/infoaspire/leads"); //AddEventsForLeadHelper.WaitForWorkAround(7000); //Open Lead AddEventsForLeadHelper.ClickElement("FirstLeadNameLink"); //Click on Move over //AddEventsForLeadHelper.ClickElement("MoveHover"); AddEventsForLeadHelper.ClickElement("ClickOn"); //################### ADD TASK ######################### //Click on Add Task AddEventsForLeadHelper.ClickElement("ClickOnAddTask"); //Select Event Type AddEventsForLeadHelper.Select("SelectEventType", "Task"); //Enter Event Location AddEventsForLeadHelper.TypeText("EnterEventLocation", TaskLocation); //Enter Event Subject AddEventsForLeadHelper.TypeText("EnterEventSubject", TaskSubject); //Enter Event Start Date AddEventsForLeadHelper.TypeText("SelectEventStartDate", "2015-12-07"); //Click On Start Time //AddEventsForLeadHelper.ClickElement("SelectStartTime"); //Click On Starting Time //AddEventsForLeadHelper.ClickElement("ClickOnHours"); //Click On Starting Time //AddEventsForLeadHelper.ClickElement("ClickOnMinutes"); //Enter Event Due Date AddEventsForLeadHelper.TypeText("SelectEventDueDate", "2015-12-08"); //Click On End Time //AddEventsForLeadHelper.ClickElement("SelectEndTime"); //Click On Starting Time //AddEventsForLeadHelper.ClickElement("ClickOnHours"); //Click On Starting Time //AddEventsForLeadHelper.ClickElement("ClickOnMinutes"); //Click On Check Reminder Check Box //AddEventsForLeadHelper.ClickElement("CheckReminder"); //Select Reminder Time //AddEventsForLeadHelper.ClickElement("SelectReminderTime"); //Click On Check Email Check Box //AddEventsForLeadHelper.ClickElement("CheckEmail"); //Select Email Reminder Time //AddEventsForLeadHelper.ClickElement("CheckRecurringEvent"); //Click On Save AddEventsForLeadHelper.ClickElement("ClickOnSave"); AddEventsForLeadHelper.WaitForWorkAround(7000); }
public void leadviewaddtocampaign() { string[] username = null; string[] password = null; var oXMLData = new XMLParse(); oXMLData.LoadXML("../../Config/OrganizationSetting.xml"); username = oXMLData.getData("settings/Credentials", "username"); password = oXMLData.getData("settings/Credentials", "password"); //Initializing the objects var loginHelper = new LoginHelper(GetWebDriver()); var AddEventsForLeadHelper = new AddEventsForLeadHelper(GetWebDriver()); //Login with valid username and password Login(username[0], password[0]); Console.WriteLine("Logged in as: " + username[0] + " / " + password[0]); //Verify Page title VerifyTitle("Dashboard"); Console.WriteLine("Redirected at Dashboard screen."); //Click on Leads AddEventsForLeadHelper.ClickElement("ClickOnLeads"); //GetWebDriver().Navigate().GoToUrl("http://zaspire.com/infoaspire/leads"); //AddEventsForLeadHelper.WaitForWorkAround(7000); //Open Lead AddEventsForLeadHelper.ClickElement("FirstLeadNameLink"); //Click on Move over AddEventsForLeadHelper.ClickElement("MoveHover"); AddEventsForLeadHelper.WaitForWorkAround(10000); //################### LEADS ADD TO CAMPAIGN ######################### //Click on Add To Campaign AddEventsForLeadHelper.ClickElement("ClickOnAddToCampaign"); AddEventsForLeadHelper.WaitForWorkAround(4000); //Click on Merge Button AddEventsForLeadHelper.ClickElement("ClickOnMergeButton"); //Click On Campaign Name AddEventsForLeadHelper.ClickElement("ClickOnCampaignName"); //Select Campaign Group //AddEventsForLeadHelper.Select("SelectCampaignGroup", "10"); //Enter Add New Campaign Group Name AddEventsForLeadHelper.TypeText("EnterCampaignGroupName", "Test Group"); //Click On Add Leads AddEventsForLeadHelper.ClickElement("ClickOnAddLeads"); AddEventsForLeadHelper.AcceptAlert(); AddEventsForLeadHelper.WaitForWorkAround(10000); }