コード例 #1
0
        public void sendemailforlead()
        {
            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(5000);



//################### SEND EMAIL  #########################


            //Click on Send Email
            AddEventsForLeadHelper.ClickElement("ClickOnSendEmail");

            //Click On Employees Link
            AddEventsForLeadHelper.ClickElement("ClickOnEmployeesLink");

            //Click On To Address Check Box
            AddEventsForLeadHelper.ClickElement("ToAddressCheckBox");

            //Click On CC Address Check Box
            AddEventsForLeadHelper.ClickElement("CCAddressCheckBox");

            //Click On BCC Address Check Box
            AddEventsForLeadHelper.ClickElement("BCCAddressCheckBox");

            //Click On Add Email Address Button
            AddEventsForLeadHelper.ClickElement("ClickOnAddEmailAddress");

            //Click on Send Email Button
            AddEventsForLeadHelper.ClickElement("ClickOnSendEmailButton");
            AddEventsForLeadHelper.WaitForWorkAround(10000);
            

        }
コード例 #2
0
        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);
        }
コード例 #3
0
        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);
        }
コード例 #4
0
        public void leadcopyanddelete()
        {
            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);



//#################### LEAD COPY  #####################################



            //Click on Copy
            AddEventsForLeadHelper.ClickElement("ClickOnCopy");
            AddEventsForLeadHelper.WaitForWorkAround(5000);

            AddEventsForLeadHelper.AcceptAlert();
            AddEventsForLeadHelper.WaitForWorkAround(5000);


//#################### LEAD DELETE  #####################################


            //Click on Delete
            AddEventsForLeadHelper.ClickElement("ClickOnDelete");
            AddEventsForLeadHelper.WaitForWorkAround(5000);

            AddEventsForLeadHelper.AcceptAlert();
            AddEventsForLeadHelper.WaitForWorkAround(5000);
        }
コード例 #5
0
        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);
        }
コード例 #6
0
        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);
        }