public void DeleteLanguage() { //Identifying the FIRST DATA TAB LANGUAGE section and the click IWebElement LanguageTab = Driver.driver.FindElement(By.XPath("//a[contains(@data-tab,'first')]")); ConstantHelpers.Click_Operation(LanguageTab); try { //Identifying Cross like Delete 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; if (LngTxt == "Spanish") { //Identify The "CROSS" delete Sign IWebElement DltIcon = Driver.driver.FindElement(By.XPath("//form/div[2]/div/div[2]/div/table/tbody[" + i + "]/tr/td[3]/span[2]/i")); Driver.TurnOnWait(); //Click on Delete Icon ConstantHelpers.Click_Operation(DltIcon); break; } } } catch (Exception e) { Console.WriteLine(e.Message); } }
public void ValidateDelSkill() { //Identifying theSkill tab section and the click ConstantHelpers.Click_Operation(skillsBtn); for (int i = 1; i <= 3; i++) { //Get the Text Of The "Skill" var SkillTxt = 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/tbody[" + i + "]/tr/td[1]")).Text; //Get the Text of the "Level" of skill var LvlTxt = 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/tbody[" + i + "]/tr/td[2]")).Text; try { if (SkillTxt != "Scientist" && LvlTxt != "Intermediate") { Console.WriteLine("Deleted Skill has been Validated"); break; } } catch (Exception e) { Console.WriteLine(e.Message); } } }
public void ValidateDelLanguage() { //Identifying the FIRST DATA TAB LANGUAGE section and the click IWebElement LanguageTab = Driver.driver.FindElement(By.XPath("//a[contains(@data-tab,'first')]")); ConstantHelpers.Click_Operation(LanguageTab); for (int i = 1; i <= 3; i++) { //Get the Text Of The "Language" var LngTxt = 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[1]")).Text; //Get the Text of the "Level" of language var 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; try { if (LngTxt != "FRENCH" && LvlTxt != "Basic") { Console.WriteLine("Deleted Language has been Validated"); break; } } catch (Exception e) { Console.WriteLine(e.Message); } } }
public void Password_Change() { //wait GlobalDefinitions.WaitForElement(GlobalDefinitions.driver, By.XPath("//span[contains(@tabindex,'0')]"), 2000); //Click on "Hi Papri" button ConstantHelpers.Click_Operation(Hi_Name); //Wait for Element GlobalDefinitions.WaitForElement(GlobalDefinitions.driver, By.XPath("//a[@class='item'][contains(.,'Change Password')]"), 2000); //Click and SELECT "CHANGE PASSWORD" option ConstantHelpers.Click_Operation(Change_Pswrd); //Click "CURRENT PASSWORD" Field ConstantHelpers.Click_Operation(Crnt_Pswrd); //Sending Values to "CURRENT PASSWORD" Field ConstantHelpers.EnterText(Crnt_Pswrd, "123456"); //Sending Values to "NEW PASSWORD" Field ConstantHelpers.EnterText(Nw_Pswrd, "234567"); //Sending Values to "CONFIRM PASSWORD" Field ConstantHelpers.EnterText(Cnfrm_Pswrd, "234567"); //Wait for Element GlobalDefinitions.WaitForElement(GlobalDefinitions.driver, By.XPath("//button[@type='button'][contains(.,'Save')]"), 2000); //Click "CHANGE PASSWORD SAVE" Click ConstantHelpers.Click_Operation(Chng_Pswrd_Sv); }
public void DeleteSkill() { //Identifying the SECOND DATA TAB SKILLS section and the click GlobalDefinitions.wait(30); ConstantHelpers.Click_Operation(skillsBtn); try { for (int i = 1; i <= 4; i++) { //Get The Text of The Skill var SkillTxt = 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/tbody[" + i + "]/tr/td[1]")).Text; if (SkillTxt == "Scientist") { //Identify The CROSS sign to delete IWebElement CrsSign = 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/tbody[ " + i + "]/tr/td[3]/span[2]/i")); //Click Crss Sgn CrsSign.Click(); break; } } } catch (Exception e) { Console.WriteLine(e.Message); } }
public void DeleteCertification() { // 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[4]/span[2]")); Driver.TurnOnWait(); //Click on Delete Pen Icon ConstantHelpers.Click_Operation(CertUpdatePen); break; } } } catch (Exception e) { Console.WriteLine(e.Message); } }
public void Search_By_Filter() { //Click On The "SEARCH ICON" ConstantHelpers.Click_Operation(Search_Icon); //Wait For "element" //GlobalDefinitions.WaitForElement(GlobalDefinitions.driver, By.XPath("/html/body/div/div/div/div[2]/div/section/div/div[1]/div[3]/div[1]/div/div[2]/div/div/span"), 3000); //Click Search User ConstantHelpers.Click_Operation(Search_User_TxtBx); //Entering the user in "ENTER NAME" Text Box Search_User_TxtBx.SendKeys("papri dutta"); //Click on "ENTER NAME " Text Enter_Name_Txt.Click(); //Click the "Search user" button ConstantHelpers.Click_Operation(Search_Skills_TxtBx); //Enter "Skills" in "Search Skill" Text Box ConstantHelpers.EnterText(Search_Skills_TxtBx, "QA"); //Click on SERCH Sign In SERACH SKILLS Search_Sign.Click(); Thread.Sleep(6000); //Click On Online button Online.Click(); //Click "ONSITE" button // Click_Operation(onsite); }
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); }
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); } }
public void DeleteLanguage() { //Identifying the FIRST DATA TAB LANGUAGE section and the click IWebElement LanguageTab = GlobalDefinitions.driver.FindElement(By.XPath("//a[contains(@data-tab,'first')]")); ConstantHelpers.Click_Operation(LanguageTab); try { //Identifying Cross like Delete sign icon from "Language" Table and then click for (int i = 1; i <= 4; i++) { //Get the Text Of The "Language" string LngTxt = GlobalDefinitions.driver.FindElement(By.XPath("//*[@data-tab ='first']/div/div/div/table/tbody[" + i + "]/tr/td[1]")).Text; if (LngTxt == "Spanish") { //Identify The "CROSS" delete Sign IWebElement DltIcon = GlobalDefinitions.driver.FindElement(By.XPath("//form/div[2]/div/div[2]/div/table/tbody[" + i + "]/tr/td[3]/span[2]/i")); GlobalDefinitions.wait(30); //Click on Delete Icon ConstantHelpers.Click_Operation(DltIcon); break; } } } catch (Exception e) { Console.WriteLine(e.Message); } // ////Get the table row list //IList<IWebElement> Tablerows = GlobalDefinitions.driver.FindElements(By.XPath("//form/div[2]/div/div[2]/div/table/tbody/tr")); ////Count the No of Rows //var count = Tablerows.Count; ////Identifying "Cross" Delete Sign from "Language" Table and then click //for (var i = 1; i <= count; i++) //{ // //xpath of ith languagename(row) // String Actl_Vlu_Lng= GlobalDefinitions.driver.FindElement(By.XPath("//div/table/tbody[" + i + "]/tr/td[1]")).Text; // if (Expctd_Vlu_Lng == Actl_Vlu_Lng) // { // //click on delete icon // GlobalDefinitions.driver.FindElement(By.XPath("//div/table/tbody[" + i + "]/tr/td[3]/span[2]/i")).Click(); // Console.WriteLine("Language has been deleted"); // } // break; //} }
public void SkillSearch_By_SubCateogory() { //Click On The "SEARCH ICON" GlobalDefinitions.wait(30); ConstantHelpers.Click_Operation(Search_Icon); try { ////Traversing Through The Subcategories //for (int i = 1; i <= 6; i++) //{ //Finding the element " Category" IWebElement Ctgry_Lbl = GlobalDefinitions.driver.FindElement(By.XPath("/html/body/div/div/div/div[2]/div/section/div/div[1]/div[1]/div/a[7]")); //Click the " Category" label Ctgry_Lbl.Click(); //Get the Text of the " Category" string Ctgry_Txt = Ctgry_Lbl.Text; //Wait For element if (Ctgry_Txt == "Programming & Tech") { for (int i = 8; i <= 13; i++) { //Finding The "Sub Category" IWebElement SubCategry_Lvl = GlobalDefinitions.driver.FindElement(By.XPath("/html/body/div/div/div/div[2]/div/section/div/div[1]/div[1]/div/a[" + i + "]")); //Get the Sub Category Text string SubCategry_Lvl_Txt = SubCategry_Lvl.Text; if (SubCategry_Lvl_Txt == "QA") { SubCategry_Lvl.Click(); GlobalDefinitions.wait(6000); break; } } } //Wait for element to be visible whose Photo(Name Jignesh Patel) is Showing GlobalDefinitions.WaitForElement(GlobalDefinitions.driver, By.XPath("/html/body/div/div/div/div[2]/div/section/div/div[2]/div/div[2]/div/div/div[3]/div[1]/a[1]"), 6000); } catch (Exception) { Console.WriteLine("Test Case Failed"); } ////Wait For element //GlobalDefinitions.WaitForElement(GlobalDefinitions.driver, By.XPath("(//a[contains(@class,'item subcategory')])[4]"), 1000); ////Drop down selection //Select_Drop_Down(Prgrmng_Tch, "QA"); }
public void SkillSearch_By_AllCategories() { // //Click the "SEARCH" Skill tab // Click_Operation(search); //Click On The "SEARCH ICON" GlobalDefinitions.wait(30); ConstantHelpers.Click_Operation(Search_Icon); //Click on "All Categories" tab GlobalDefinitions.wait(30); ConstantHelpers.Click_Operation(All_Category); GlobalDefinitions.wait(30); }
public void PasswordButton() { //wait Driver.WaitForElement(Driver.driver, By.XPath("//span[contains(@tabindex,'0')]"), 2000); //Click on "Hi Papri" button ConstantHelpers.Click_Operation(Hi_Name); //Wait for Element Driver.WaitForElement(Driver.driver, By.XPath("//a[@class='item'][contains(.,'Change Password')]"), 2000); //Click and SELECT "CHANGE PASSWORD" option ConstantHelpers.Click_Operation(Change_Pswrd); }
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 Password_Change() { //Click "CURRENT PASSWORD" Field ConstantHelpers.Click_Operation(Crnt_Pswrd); //Sending Values to "CURRENT PASSWORD" Field ConstantHelpers.EnterText(Crnt_Pswrd, "123456"); //Sending Values to "NEW PASSWORD" Field ConstantHelpers.EnterText(Nw_Pswrd, "234567"); //Sending Values to "CONFIRM PASSWORD" Field ConstantHelpers.EnterText(Cnfrm_Pswrd, "234567"); //Wait for Element Driver.WaitForElement(Driver.driver, By.XPath("//button[@type='button'][contains(.,'Save')]"), 2000); //Click "CHANGE PASSWORD SAVE" Click ConstantHelpers.Click_Operation(Chng_Pswrd_Sv); }
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 Skilltab() { //Turn on wait for "SKILLS" Button and then Click Driver.TurnOnWait(); ConstantHelpers.Click_Operation(skillsBtn); }
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); } }