Example #1
0
        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);
                }
            }
        }
Example #2
0
        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();
        }
Example #3
0
        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();
        }