Example #1
0
        public void AddNewskill()
        {
            //Turn on wait for "SKILLS" Button  and then Click
            GlobalDefinitions.wait(30);
            ConstantHelpers.Click_Operation(skillsBtn);

            //Identifying add new button and then click
            IWebElement addnewskills = GlobalDefinitions.driver.FindElement(By.XPath("/html/body/div[1]/div/section[2]/div/div/div/div[3]/form/div[3]/div/div[2]/div/table/thead/tr/th[3]/div"));

            GlobalDefinitions.wait(60);
            ConstantHelpers.Click_Operation(addnewskills);

            // Identifying add skills text button and then click, sending value
            IWebElement addskillstxt = GlobalDefinitions.driver.FindElement(By.XPath("//input[contains(@placeholder,'Add Skill')]"));

            ConstantHelpers.Click_Operation(addskillstxt);
            ConstantHelpers.EnterText(addskillstxt, "Business Analyst");

            //Identifying the skills level dropdown and then click ,  , sending value
            IWebElement skillslevel = GlobalDefinitions.driver.FindElement(By.XPath("//select[contains(@class,'ui fluid dropdown')]"));

            ConstantHelpers.Click_Operation(skillslevel);
            ConstantHelpers.Drop_Down_Select_By_Text(skillslevel, "Expert");


            //Identifying the add new button and then click
            GlobalDefinitions.wait(30);
            IWebElement skilladd = GlobalDefinitions.driver.FindElement(By.XPath("(//input[contains(@value,'Add')])"));

            ConstantHelpers.Click_Operation(skilladd);
        }
Example #2
0
        public void UpdateNewSkill()
        {
            //Identifying the SECOND DATA TAB SKILLS section and the click
            ConstantHelpers.Click_Operation(skillsBtn);
            try
            {
                //Identifying pen like update sign icon from "Skills" Table  and then click
                for (int i = 1; i <= 4; i++)
                {
                    //Get the Text Of The "Language"
                    //  string SkillsTxt = Driver.driver.FindElement(By.XPath("//*[@data-tab ='second']/div/div/div/table/tbody[" + i + "]]/tr/td[1]")).Text;
                    string SkillsTxt = Driver.driver.FindElement(By.XPath("/html/body/div[1]/div/section[2]/div/div/div/div[3]/form/div[3]/div/div[2]/div/table/tbody[" + i + "]/tr/td[1]")).Text;

                    //Get the Text of the "Level" of language
                    string SkillLvlTxt = Driver.driver.FindElement(By.XPath("/html/body/div[1]/div/section[2]/div/div/div/div[3]/form/div[3]/div/div[2]/div/table/tbody[" + i + "]/tr/td[2]")).Text;

                    if (SkillsTxt == "Business Analyst" && SkillLvlTxt == "Expert")
                    {
                        IWebElement SkillsUpdatePen = Driver.driver.FindElement(By.XPath("/html/body/div[1]/div/section[2]/div/div/div/div[3]/form/div[3]/div/div[2]/div/table/tbody[" + i + "]/tr/td[3]/span[1]/i"));


                        //Click on Update Pen Icon
                        ConstantHelpers.Click_Operation(SkillsUpdatePen);

                        //Get The Skills Text Text Box
                        IWebElement SkillsTxtBx = Driver.driver.FindElement(By.XPath("//input[contains(@placeholder,'Add Skill')]"));

                        //Click Language Text Box
                        ConstantHelpers.Click_Operation(SkillsTxtBx);

                        //Clear the Text Box
                        SkillsTxtBx.Clear();

                        //Send data To "Language Text Box"

                        SkillsTxtBx.SendKeys("Scientist");

                        //Get The level DropDown Box and Click
                        IWebElement SkillLvlDrpdwn = Driver.driver.FindElement(By.XPath("/html/body/div[1]/div/section[2]/div/div/div/div[3]/form/div[3]/div/div[2]/div/table/tbody[" + i + "]/tr/td/div/div[2]/select"));
                        SkillLvlDrpdwn.Click();

                        //Select level value from Dropdown Box
                        ConstantHelpers.Drop_Down_Select_By_Text(SkillLvlDrpdwn, "Intermediate");

                        //Identifying Update Button
                        IWebElement UpdateBtn = Driver.driver.FindElement(By.XPath("/html/body/div[1]/div/section[2]/div/div/div/div[3]/form/div[3]/div/div[2]/div/table/tbody[" + i + "]/tr/td/div/span/input[1]"));

                        //Click Update
                        UpdateBtn.Click();

                        break;
                    }
                }
            }
            catch (Exception e)
            {
                Console.WriteLine(e.Message);
            }
        }
Example #3
0
        public void UpdateLanguage()
        {
            //Click FIRST DATA TAB LAGUAGE
            ConstantHelpers.Click_Operation(LanguageTab);

            try
            {
                //Identifying pen like update sign icon from "Language" Table  and then click
                for (int i = 1; i <= 4; i++)
                {
                    //Get the Text Of The "Language"
                    string LngTxt = Driver.driver.FindElement(By.XPath("//*[@data-tab ='first']/div/div/div/table/tbody[" + i + "]/tr/td[1]")).Text;

                    //Get the Text of the "Level" of language
                    string LvlTxt = Driver.driver.FindElement(By.XPath("/html/body/div[1]/div/section[2]/div/div/div/div[3]/form/div[2]/div/div[2]/div/table/tbody[" + i + "]/tr/td[2]")).Text;

                    if (LngTxt == "Spanish" && LvlTxt == "Conversational")
                    {
                        //Identify Language Update Pen
                        IWebElement LanguageUpdatePen = Driver.driver.FindElement(By.XPath("/html/body/div[1]/div/section[2]/div/div/div/div[3]/form/div[2]/div/div[2]/div/table/tbody[" + i + "]/tr/td[3]/span[1]"));
                        Driver.TurnOnWait();

                        //Click on Update Pen Icon
                        ConstantHelpers.Click_Operation(LanguageUpdatePen);

                        //Click Language Text Box
                        ConstantHelpers.Click_Operation(LnguageTxtBx);

                        //Clear the Text Box
                        LnguageTxtBx.Clear();

                        //Send data To "Language Text Box"
                        Driver.TurnOnWait();
                        LnguageTxtBx.SendKeys("FRENCH");

                        //Select level value from Dropdown Box
                        Driver.TurnOnWait();
                        ConstantHelpers.Drop_Down_Select_By_Text(LngLvlDrpdwn, "Basic");

                        //Click Update
                        ConstantHelpers.Click_Operation(update);
                        break;
                    }
                }
            }
            catch (Exception e)
            {
                Console.WriteLine(e.Message);
            }
        }
        public void AddNewEdctn()
        {
            //Click Education Data tab
            GlobalDefinitions.wait(60);
            EdctnBtn.Click();

            //Click "Add New Btn"
            AddNewBtn.Click();

            //Click University Text Box
            UniBtn.Click();

            //Sending data to University Button
            UniBtn.SendKeys("WBUT");

            //Click Country Dropdown
            Country.Click();

            //Selection of Country from DROPdown
            Thread.Sleep(5000);
            // GlobalDefinitions.WaitForElement(GlobalDefinitions.driver, By.XPath("//select[contains(@name,'country')]"), 30);
            ConstantHelpers.Drop_Down_Select_By_Value(Country, "India");

            //Click on Title Dropdown
            GlobalDefinitions.wait(60);
            Title.Click();

            //SElection Of TITLE Dropdown
            ConstantHelpers.Drop_Down_Select_By_Text(Title, "B.Sc");

            //Click on Degree
            GlobalDefinitions.wait(60);
            Degree.Click();

            //Sending Data to Degree Button
            Degree.SendKeys("Graduation");

            //Click on Year of Grdauation
            GlobalDefinitions.wait(60);
            Year.Click();

            //Selection Of TITLE Dropdown
            ConstantHelpers.Drop_Down_Select_By_Text(Year, "2012");

            //Click Add
            Add.Click();
        }
Example #5
0
        public void addlanguage()
        {
            //Click on "Add New" Button
            Driver.TurnOnWait();
            addnewlanguage.Click();

            //Click on Language Text
            Driver.TurnOnWait();
            ConstantHelpers.Click_Operation(addlanguagetxt);

            //Entering language name in language Text Box
            ConstantHelpers.EnterText(addlanguagetxt, "Spanish");

            //Click On Language Level Drop Down and Select the Level
            ConstantHelpers.Click_Operation(languagelevel);
            ConstantHelpers.Drop_Down_Select_By_Text(languagelevel, "Conversational");

            //Identifying the add button, click , sending value
            Driver.TurnOnWait();
            ConstantHelpers.Click_Operation(languageadd);
        }
        public void addlanguage()
        {
            //Click on Language Data tab
            lnguageTab.Click();

            //Click on "Add New" Button
            GlobalDefinitions.wait(10);
            addnewlanguage.Click();

            //Click on Language Text
            GlobalDefinitions.wait(30);
            ConstantHelpers.Click_Operation(addlanguagetxt);

            //Entering language name in language Text Box
            ConstantHelpers.EnterText(addlanguagetxt, "Spanish");

            //Click On Language Level Drop Down and Select the Level
            ConstantHelpers.Click_Operation(languagelevel);
            ConstantHelpers.Drop_Down_Select_By_Text(languagelevel, "Conversational");

            //Identifying the add button, click , sending value
            GlobalDefinitions.wait(10);
            ConstantHelpers.Click_Operation(languageadd);
        }
        public void UpdateCertification()

        {
            //Click on Certification Button
            CertificationBtn.Click();
            try
            {
                for (int i = 1; i <= 3; i++)
                {
                    //Get the Text of Certificate
                    var CrtfctTxt = Driver.driver.FindElement(By.XPath("/html/body/div[1]/div/section[2]/div/div/div/div[3]/form/div[5]/div[1]/div[2]/div/table/tbody[" + i + "]/tr/td[1]")).Text;

                    //Get the Text of Certificate From
                    var CrtfctFrmTxt = Driver.driver.FindElement(By.XPath("/html/body/div[1]/div/section[2]/div/div/div/div[3]/form/div[5]/div[1]/div[2]/div/table/tbody[" + i + "]/tr/td[2]")).Text;

                    //Get The Year
                    var YearBxTxt = Driver.driver.FindElement(By.XPath("/html/body/div[1]/div/section[2]/div/div/div/div[3]/form/div[5]/div[1]/div[2]/div/table/tbody[" + i + "]/tr/td[3]")).Text;

                    if (CrtfctTxt == "Certificate 4" && CrtfctFrmTxt == "TAFE" && YearBxTxt == "2018")
                    {
                        //Identify Certification Update Pen
                        IWebElement CertUpdatePen = Driver.driver.FindElement(By.XPath("/html/body/div[1]/div/section[2]/div/div/div/div[3]/form/div[5]/div[1]/div[2]/div/table/tbody[" + i + "]/tr/td/div/span/input[1]"));
                        Driver.TurnOnWait();

                        //Click on Update Pen Icon
                        ConstantHelpers.Click_Operation(CertUpdatePen);

                        //Click Cert Text Box
                        IWebElement CertupdateTxtBx = Driver.driver.FindElement(By.XPath("/html/body/div[1]/div/section[2]/div/div/div/div[3]/form/div[5]/div[1]/div[2]/div/table/tbody[" + i + "]/tr/td/div/div/div[1]/input"));
                        ConstantHelpers.Click_Operation(CertupdateTxtBx);

                        //Clear the Text Box
                        CertupdateTxtBx.Clear();

                        //Send data To "Cert Text Box"
                        Driver.TurnOnWait();
                        CertupdateTxtBx.SendKeys("Test Analyst");

                        //Click From Text Box
                        IWebElement FromupdateTxtBx = Driver.driver.FindElement(By.XPath("/html/body/div[1]/div/section[2]/div/div/div/div[3]/form/div[5]/div[1]/div[2]/div/table/tbody[" + i + "]/tr/td/div/div/div[2]/input"));
                        ConstantHelpers.Click_Operation(FromupdateTxtBx);

                        //Clear the Text Box
                        FromupdateTxtBx.Clear();

                        //Send data To "Cert Text Box"
                        Driver.TurnOnWait();
                        FromupdateTxtBx.SendKeys("MVPStudio");


                        //Select year value from Dropdown Box
                        Driver.TurnOnWait();
                        IWebElement CertYearDrpdwn = Driver.driver.FindElement(By.XPath("/html/body/div[1]/div/section[2]/div/div/div/div[3]/form/div[5]/div[1]/div[2]/div/table/tbody[" + i + "]/tr/td/div/div/div[3]/select"));
                        ConstantHelpers.Drop_Down_Select_By_Text(CertYearDrpdwn, "2012");

                        //Click Update
                        IWebElement Certupdate = Driver.driver.FindElement(By.XPath("/html/body/div[1]/div/section[2]/div/div/div/div[3]/form/div[5]/div[1]/div[2]/div/table/tbody[" + i + "]/tr/td/div/span/input[1]"));
                        ConstantHelpers.Click_Operation(Certupdate);
                        break;
                    }
                }
            }

            catch (Exception e)
            {
                Console.WriteLine(e.Message);
            }
        }
        public void UpdateEducation()
        {
            //Click on Education Data Tab
            EdctnBtn.Click();

            //Iterating thhrough the Education table

            try
            {
                for (int i = 1; i <= 3; i++)
                {
                    //Identify Country Text
                    var Country_Txt = GlobalDefinitions.driver.FindElement(By.XPath("html/body/div[1]/div/section[2]/div/div/div/div[3]/form/div[4]/div/div[2]/div/table/tbody[" + i + "]/tr/td[1]")).Text;

                    //Identify University Text
                    var Uni_Txt = GlobalDefinitions.driver.FindElement(By.XPath("/html/body/div[1]/div/section[2]/div/div/div/div[3]/form/div[4]/div/div[2]/div/table/tbody[" + i + "]/tr/td[2]")).Text;

                    //Identify The Title Text
                    var Title_Txt = GlobalDefinitions.driver.FindElement(By.XPath("/html/body/div[1]/div/section[2]/div/div/div/div[3]/form/div[4]/div/div[2]/div/table/tbody[" + i + "]/tr/td[3]")).Text;

                    //Identify the DEGREE Text
                    var Degree_Txt = GlobalDefinitions.driver.FindElement(By.XPath("/html/body/div[1]/div/section[2]/div/div/div/div[3]/form/div[4]/div/div[2]/div/table/tbody[" + i + "]/tr/td[4]")).Text;

                    //Idendify the Year of Graduation Test
                    var Year_Txt = GlobalDefinitions.driver.FindElement(By.XPath("/html/body/div[1]/div/section[2]/div/div/div/div[3]/form/div[4]/div/div[2]/div/table/tbody[" + i + "]/tr/td[5]")).Text;

                    if (Country_Txt == "India" && Uni_Txt == "WBUT" && Degree_Txt == "Graduation" && Title_Txt == "B.Sc" && Year_Txt == "2012")
                    {
                        //Identify Language Update Pen
                        GlobalDefinitions.wait(30);
                        IWebElement Edctn_Updt_Pen = GlobalDefinitions.driver.FindElement(By.XPath("/html/body/div[1]/div/section[2]/div/div/div/div[3]/form/div[4]/div/div[2]/div/table/tbody[" + i + "]/tr/td[6]/span[1]/i"));


                        //Click on Update Pen Icon
                        GlobalDefinitions.wait(30);
                        ConstantHelpers.Click_Operation(Edctn_Updt_Pen);

                        //Click  University Text Box
                        UniBtn.Click();

                        //Clear University Button
                        UniBtn.Clear();

                        //Send Keys To University Text Box
                        UniBtn.SendKeys("HARVARD");


                        //Selection of Country from DROPdown
                        GlobalDefinitions.WaitForElement(GlobalDefinitions.driver, By.XPath("//select[contains(@name,'country')]"), 30);
                        ConstantHelpers.Drop_Down_Select_By_Value(Country, "United States");


                        //Click on Title Dropdown
                        GlobalDefinitions.wait(60);
                        Title.Click();

                        //SElection Of TITLE Dropdown
                        ConstantHelpers.Drop_Down_Select_By_Text(Title, "M.Tech");

                        //Click on Degree
                        GlobalDefinitions.wait(60);
                        Degree.Click();

                        //Clear Degree text Box
                        Degree.Clear();

                        //Sending Data to Degree Button
                        Degree.SendKeys("Masters");

                        //Click on Year of Grdauation
                        GlobalDefinitions.wait(60);
                        Year.Click();

                        //Selection Of TITLE Dropdown
                        ConstantHelpers.Drop_Down_Select_By_Text(Year, "2019");

                        //Click on Update Button
                        Update.Click();
                        break;
                    }
                }
            }
            catch (Exception e)
            {
                Console.WriteLine(e.Message);
            }
        }