public void Addcertificationdetails() { //Click on the "Certification" Link Certification.Click(); Thread.Sleep(1000); //Click on "Add New" Button AddNew.Click(); Thread.Sleep(1300); //Send data to the "Certification or Award" textbox CertificateorAward.SendKeys("New Zealand Student Award for 2019"); Thread.Sleep(1300); //Send data to the "Certified from (eg. Adobe)" textbox Certifiedfrom.SendKeys("NZQA New Zealand"); Thread.Sleep(1300); //Click on the "Certified year" Drop down and Select the "Year" IWebElement Certifiedyear = Driver.driver.FindElement(By.XPath("//select[@name='certificationYear']")); SelectElement Certifiedyear_dd = new SelectElement(Certifiedyear); Certifiedyear_dd.SelectByValue("2017"); Thread.Sleep(1300); Addnewcert.Click(); Thread.Sleep(1300); }
public void AddEduDetail() { //Click on "Education" Education.Click(); Thread.Sleep(1000); //Click on "Add New" button AddNew.Click(); Thread.Sleep(1000); //Enter the "College Name" CollegeName.SendKeys("Weltec"); Thread.Sleep(1000); //Click on the "Country of College Name" //CountryCollege.Click(); //Select the "Country of College Name" IWebElement Country_Name = Driver.driver.FindElement(By.XPath("//select[@name='country']")); SelectElement Country_dd = new SelectElement(Country_Name); Country_dd.SelectByValue("Argentina"); Thread.Sleep(1000); //Click on the "Title" drop down and Select the "Title" IWebElement Title = Driver.driver.FindElement(By.XPath("//select[@name='title']")); SelectElement Title_dd = new SelectElement(Title); Title_dd.SelectByValue("B.Tech"); Thread.Sleep(1000); //Send data to "Degree" textbox Degree.SendKeys("Bachelor of Information technology"); Thread.Sleep(1000); //Click on the "Year of Graduation" drop down and Select the "year" IWebElement Graduation = Driver.driver.FindElement(By.XPath("//select[@name='yearOfGraduation']")); SelectElement Graduation_dd = new SelectElement(Graduation); Graduation_dd.SelectByValue("2016"); Thread.Sleep(1000); //Click on "Add" button to Add all the details in it AddEduBtn.Click(); Thread.Sleep(1000); }