コード例 #1
0
        public void addleadsforgroupview()
        {
            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 LeadsGroupViewHelper = new LeadsGroupViewHelper(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
            LeadsGroupViewHelper.ClickElement("ClickOnLeads");

            //GetWebDriver().Navigate().GoToUrl("http://zaspire.com/infoaspire/leads");
            //LeadsGroupViewHelper.WaitForWorkAround(7000);


            //Click On Groups
            //LeadsGroupViewHelper.ClickElement("ClickOnGroups");

            GetWebDriver().Navigate().GoToUrl("http://zaspire.com/infoaspire/leads/groups");
            LeadsGroupViewHelper.WaitForWorkAround(7000);

            //Open Group
            LeadsGroupViewHelper.ClickElement("FirstLeadGroupNameLink");


//################### ADD LEADS FOR GROUPS VIEW PAGE  #########################


            //Click on Add Leads
            LeadsGroupViewHelper.ClickElement("ClickOnAddLeads");

            //Select Pageination
            LeadsGroupViewHelper.Select("SelectPagination", "20");

            //Click on Master Check Box
            LeadsGroupViewHelper.ClickElement("SelectMasterCheckBox");

            //Click on Add To Group
            LeadsGroupViewHelper.ClickElement("ClickOnAddToGroup");
        }
コード例 #2
0
        public void leadsgroupview()
        {
            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 LeadsGroupViewHelper = new LeadsGroupViewHelper(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
            LeadsGroupViewHelper.ClickElement("ClickOnLeads");

            //GetWebDriver().Navigate().GoToUrl("http://zaspire.com/infoaspire/leads");
            //LeadsGroupViewHelper.WaitForWorkAround(7000);


            //Click On Groups
            //LeadsGroupViewHelper.ClickElement("ClickOnGroups");

            GetWebDriver().Navigate().GoToUrl("http://zaspire.com/infoaspire/leads/groups");
            LeadsGroupViewHelper.WaitForWorkAround(7000);

            //Open Group
            LeadsGroupViewHelper.ClickElement("FirstLeadGroupNameLink");


//################### GROUPS VIEW PAGE ACTIONS  #########################


            //Click on Add New
            LeadsGroupViewHelper.ClickElement("ClickOnAddNew");

            //Click On Add New To Groups
            LeadsGroupViewHelper.ClickElement("ClickOnAddNewToGroups");

            //GetWebDriver().Navigate().GoToUrl("http://zaspire.com/infoaspire/leads/groups");
            //LeadsGroupViewHelper.WaitForWorkAround(7000);

            //Click on Edit
            LeadsGroupViewHelper.ClickElement("ClickOnEdit");

            //Click On Edit To Groups
            LeadsGroupViewHelper.ClickElement("ClickOnEditToGroups");

            //GetWebDriver().Navigate().GoToUrl("http://zaspire.com/infoaspire/leads/groups");
            //LeadsGroupViewHelper.WaitForWorkAround(7000);

            //Click on Back
            LeadsGroupViewHelper.ClickElement("ClickOnBack");

            //Click On Groups
            //LeadsGroupViewHelper.ClickElement("ClickOnGroups");

            GetWebDriver().Navigate().GoToUrl("http://zaspire.com/infoaspire/leads/groups");
            LeadsGroupViewHelper.WaitForWorkAround(7000);

            //Click on More Actions
            LeadsGroupViewHelper.ClickElement("ClickOnMoreActions");

            //Click on Delete
            LeadsGroupViewHelper.ClickElement("ClickOnDelete");
            LeadsGroupViewHelper.WaitForWorkAround(4000);

            LeadsGroupViewHelper.AcceptAlert();
            LeadsGroupViewHelper.WaitForWorkAround(10000);


//################### JOB POSITIONS SEARCH FOR GROUPS VIEW PAGE  #########################


            //Enter Job Positions Search Box
            LeadsGroupViewHelper.TypeText("EnterJobPositionsSearchBox", "Java Developer");

            //Click On Job Positions Reset Button
            LeadsGroupViewHelper.ClickElement("ClickOnJobPositionsReset");


//################### LEADS SEARCH FOR GROUP VIEW PAGE  #########################


            //Enter Leads Search Box
            LeadsGroupViewHelper.TypeText("EnterLeadsSearchBox", "Test Lead");

            //Click On Leads Reset Button
            LeadsGroupViewHelper.ClickElement("ClickOnLeadsReset");
        }
コード例 #3
0
        public void addpositionsforleadsgroup()
        {
            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 LeadsGroupViewHelper = new LeadsGroupViewHelper(GetWebDriver());

            //Variable

            var JobTitle = "Test Job" + RandomNumber(1, 99);
            var JobCity  = "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
            LeadsGroupViewHelper.ClickElement("ClickOnLeads");

            //GetWebDriver().Navigate().GoToUrl("http://zaspire.com/infoaspire/leads");
            //LeadsGroupViewHelper.WaitForWorkAround(7000);


            //Click On Groups
            //LeadsGroupViewHelper.ClickElement("ClickOnGroups");

            GetWebDriver().Navigate().GoToUrl("http://zaspire.com/infoaspire/leads/groups");
            LeadsGroupViewHelper.WaitForWorkAround(7000);

            //Open Group
            LeadsGroupViewHelper.ClickElement("FirstLeadGroupNameLink");



//################### ADD JOB POSITIONS  #########################


            //Click on Add Job Positions
            //LeadsGroupViewHelper.ClickElement("ClickOnAddPosition");

            //Enter Job Title
            LeadsGroupViewHelper.TypeText("EnterJobTitle", JobTitle);

            //Select Career Level
            LeadsGroupViewHelper.Select("SelectCareerLevel", "Lead Role");

            //Enter Exp Years
            LeadsGroupViewHelper.TypeText("EnterExpYears", "3");

            //Enter Exp Months
            LeadsGroupViewHelper.TypeText("EnterExpMonths", "5");

            //Enter Position Url
            LeadsGroupViewHelper.TypeText("EnterPositionUrl", "www.jobtitle.com");

            //Select Education
            LeadsGroupViewHelper.Select("SelectEducation", "B.Tech");

            //Click On Job Type Expand Icon
            LeadsGroupViewHelper.ClickElement("ClickOnJobTypeExpand");

            //Select Job Type
            LeadsGroupViewHelper.Select("SelectJobType", "Full Time");

            //Click On Job Location Expand Icon
            LeadsGroupViewHelper.ClickElement("ClickOnJobLocationExpand");

            //Enter City
            LeadsGroupViewHelper.TypeText("EnterCity", JobCity);

            //Select State
            LeadsGroupViewHelper.Select("SelectState", "DE");

            //Select Country
            LeadsGroupViewHelper.Select("SelectCountry", "USA");

            //Enter Zip Code
            LeadsGroupViewHelper.TypeText("EnterZipCode", "58962");


            //Click On Save
            LeadsGroupViewHelper.ClickElement("ClickOnSave");
            LeadsGroupViewHelper.WaitForWorkAround(10000);
        }