public void AddLanguage(int count) { for (int i = 0; i < count; i++) { try { AddNewLangBtn.Click(); Thread.Sleep(500); //Add Language //Excel sheet must be updated accordingly AddLangText.SendKeys(GlobalDefinitions.ExcelLib.ReadData(i + 2, "Language")); //Click on Language Level ChooseLangLevel.Click(); Thread.Sleep(500); ChooseLangOpt.Click(); Thread.Sleep(1000); //Click on Add button AddLang.Click(); } catch (Exception e) { Console.WriteLine(e); } } }
public void UpdateLanguageLevel() { //Click on update record UpdateLangRecord.Click(); Thread.Sleep(500); //Click on Language Level ChooseLangLevel.Click(); Thread.Sleep(500); ChooseLangOpt.Click(); Thread.Sleep(1000); //Click on Add button UpdateLangBtn.Click(); }
public void AddLanguage() { AddNewLangBtn.Click(); Thread.Sleep(500); //Add Language AddLangText.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "Language")); //Click on Language Level ChooseLangLevel.Click(); Thread.Sleep(500); ChooseLangOpt.Click(); Thread.Sleep(1000); //Click on Add button AddLang.Click(); }