예제 #1
0
        internal void LanguageAdd()
        {
            // Populate the excel data
            GlobalDefinitions.ExcelLib.PopulateInCollection(Base.ExcelPath, "ProfilePage");

            //Explicit wait to click Add new element
            GlobalDefinitions.WaitForElement(GlobalDefinitions.driver, By.XPath("//a[@data-tab='first']"));

            //Click Language tab
            ClickLang.Click();

            GlobalDefinitions.WaitForElement(GlobalDefinitions.driver, By.XPath("//div[contains(text(),'Add New')][1]"));

            //Click Add new
            Addnewlang.Click();

            //Add Language
            AddLang.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "Language"));

            //Add Level
            SelectLevel.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "Level"));

            //Save Language
            SaveLang.Click();
        }
예제 #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);
        }