//Add Certification
        internal void AddCertification()
        {
            //explicit wait
            GlobalDefinitions.WaitForClickableElement(driver, By.XPath("//a[text()='Certifications']"), 30);

            //click on certification tab
            CertificationsButton.Click();

            GlobalDefinitions.wait(30);

            //add new certification
            AddNewCertification.Click();

            GlobalDefinitions.wait(30);
            //add value in certificate field and certification from
            CertificationText.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "Certificate"));

            CertifiedFromText.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "CertifiedFrom"));

            //select certificate year
            selectdropdown("certificationYear", GlobalDefinitions.ExcelLib.ReadData(2, "CertificationYear"));

            btnAddCertification.Click();

            driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(15);
        }
Exemple #2
0
        public void AddCertificationSteps()
        {
            GlobalDefinitions.ExcelLib.PopulateInCollection(Base.ExcelPath, "Certification");
            CertificationSection.Click();
            AddNewCertification.Click();
            CertificateName.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "Certificate"));
            CertificationFrom.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "Certificate From"));
            CertificationYear.Click();
            SelectElement year = new SelectElement(CertificationYear);

            year.SelectByValue(GlobalDefinitions.ExcelLib.ReadData(2, "Certification Year"));
            CertificationAddBtn.Click();
            GlobalDefinitions.WaitForElement(GlobalDefinitions.driver, By.XPath("//div[contains(@class,'ns-box ns-growl ns-effect-jelly ns-type-success ns-show')]"), 10);
        }
Exemple #3
0
        //Add new Certification on the Profile page
        public void AddCertificationOnProfile(string certificate, string from, string year)
        {
            //Click on AddNew button
            AddNewCertification.Click();

            //Enter Certificate name
            CertificateTextBox.SendKeys(certificate);

            //Enter Certified From
            CertifiedFromTextBox.SendKeys(from);

            //Select Certified year
            SelectElement selectCertifiedYear = new SelectElement(CertifiedYear);

            selectCertifiedYear.SelectByText(year);

            //Click on Add button to add Certificate
            AddButton.Click();
        }
        //Add Certification
        internal void AddCertification1()
        {
            Console.WriteLine("******************************");

            // CertificationsButton.Click();

            ExtentionHelpers.TurnOnWait(driver);

            //add new certification
            AddNewCertification.Click();

            ExtentionHelpers.TurnOnWait(driver);
            //add value in certificate field and certification from
            CertificationText.SendKeys(ExcelLibHelper.ReadData(3, "Certificate"));

            CertifiedFromText.SendKeys(ExcelLibHelper.ReadData(3, "Certified from"));

            //select certificate year
            selectdropdown1("certificationYear", ExcelLibHelper.ReadData(3, "CertificationYear"));

            AddCertification.Click();

            driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(15);
        }