Example #1
0
        public void EditLanguage()
        {
            {
                Global.ExcelLib.PopulateInCollection(Base.ExcelPath, "AddSkills");
                GlobalDefinitions.Wait();        //for editing skill details
                EditLang.Click();
                AddLangText.Clear();
                AddLangText.SendKeys(ExcelLib.ReadData(7, "Language"));

                //Selecting the language level
                IWebElement   LanguageLevelDrpdwn = GlobalDefinitions.driver.FindElement(By.XPath("//select[@name='level']"));
                SelectElement chooseLanguageLevel = new SelectElement(LanguageLevelDrpdwn);
                //select.SelectByText(ConstantHelpers.LevelFluent);
                var languageLevelData = ExcelLib.ReadData(2, "ChooseLangLevel");
                chooseLanguageLevel.SelectByValue(languageLevelData);
                AddLang.Click();
            }
        }
Example #2
0
        internal void LanguageEdit()
        {
            // Populate the excel data
            GlobalDefinitions.ExcelLib.PopulateInCollection(Base.ExcelPath, "ProfilePage");

            //Click Language tab
            GlobalDefinitions.WaitForElement(GlobalDefinitions.driver, By.XPath("//a[@data-tab='first']"));
            ClickLang.Click();
            EditLang.Click();

            //Add new Language
            AddLang.Clear();
            AddLang.SendKeys(GlobalDefinitions.ExcelLib.ReadData(3, "Language"));

            //Add new Level
            SelectLevel.Click();
            SelectLevel.SendKeys(GlobalDefinitions.ExcelLib.ReadData(3, "Level"));

            //Click update
            UpdateLang.Click();

            GlobalDefinitions.wait(40);
        }