//Add new Lanuguage
        internal void Addlanguage()
        {
            //explicit wait
            GlobalDefinitions.WaitForClickableElement(driver, By.XPath("//a[text()='Languages']"), 30);

            //firstly click on language button
            LanguageButton.Click();

            //implicit wait
            GlobalDefinitions.wait(30);

            //click on add new button
            AddNewLanguage.Click();


            GlobalDefinitions.wait(30);
            //enter text in language field
            LanguageText.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "Language"));

            //select level from drop down

            new SelectElement(driver.FindElement(By.XPath("//select[@class='ui dropdown']"))).SelectByValue(GlobalDefinitions.ExcelLib.ReadData(2, "LanguageLevel"));

            GlobalDefinitions.wait(30);

            //click on add button
            AddLanguage.Click();

            GlobalDefinitions.wait(30);
        }
示例#2
0
        //Add new Lanuguage
        internal void Addlanguage()
        {
            Console.WriteLine("******************************");

            //implicit wait
            ExtentionHelpers.TurnOnWait(driver);

            //click on add new button
            AddNewLanguage.Click();

            ExtentionHelpers.TurnOnWait(driver);
            //enter text in language field
            LanguageText.SendKeys(ExcelLibHelper.ReadData(3, "Language"));

            //select level from drop down

            new SelectElement(driver.FindElement(By.XPath("//select[@class='ui dropdown']"))).SelectByValue(ExcelLibHelper.ReadData(2, "LanguageLevel"));

            ExtentionHelpers.TurnOnWait(driver);

            //click on add button
            AddLanguage.Click();

            ExtentionHelpers.TurnOnWait(driver);

            Console.WriteLine("Language added");
            Console.WriteLine("******************************");
        }
示例#3
0
        //Add new Language on the Profile page
        public void AddLanguageOnProfile(string language, string level)
        {
            //Click on AddNew button to add new language
            AddNewLanguage.Click();

            //Enter new Language
            LanguageTextBox.SendKeys(language);

            //Select Language level
            SelectElement selectLanguageLevel = new SelectElement(Level);

            selectLanguageLevel.SelectByText(level);

            //Click on Add button to add language data
            AddButton.Click();
        }