internal void EditLanguage()
        {
            // Populate data saved in Excel
            GlobalDefinitions.ExcelLib.PopulateInCollection(Base.ExcelPath, "Profile");

            // Refresh the page
            GlobalDefinitions.driver.Navigate().Refresh();
            //Click on language
            GlobalDefinitions.WaitForElementVisibility(GlobalDefinitions.driver, "XPath", "//*[@id='account-profile-section']/div/section[2]/div/div/div/div[3]/form/div[1]/a[1]", 10000);
            LangBtn.Click();

            //Click on language to edit
            GlobalDefinitions.WaitForElementVisibility(GlobalDefinitions.driver, "XPath", "//div[@id='account-profile-section']/div/section[2]/div/div/div/div[3]/form/div[2]/div/div[2]/div/table/tbody[last()]/tr/td[1]", 10000);
            LangToSel.Click();

            //Click on edit language button
            GlobalDefinitions.WaitForElementVisibility(GlobalDefinitions.driver, "XPath", "//div[@id='account-profile-section']/div/section[2]/div/div/div/div[3]/form/div[2]/div/div[2]/div/table/tbody[last()]/tr/td[3]/span[1]/i", 10000);
            EditLangBtn.Click();

            //Update the language
            //Update language level
            GlobalDefinitions.WaitForElementVisibility(GlobalDefinitions.driver, "Name", "level", 10000);
            ChooseLevel.Click();

            new SelectElement(ChooseLevel).SelectByText(GlobalDefinitions.ExcelLib.ReadData(3, "LanguageLevel"));

            //Click on update
            GlobalDefinitions.WaitForElementVisibility(GlobalDefinitions.driver, "XPath", "//div[@id='account-profile-section']/div/section[2]/div/div/div/div[3]/form/div[2]/div/div[2]/div/table/tbody/tr/td/div/span/input[1]", 10000);
            UpdateLangBtn.Click();
            Base.test.Log(LogStatus.Info, "Language edited successfully");
        }
Beispiel #2
0
        public void UpdateLanguage()
        {
            //Click on update record
            UpdateLangRecord.Click();
            Thread.Sleep(500);

            //Clear the field and update the Language
            UpdateLangName.Clear();
            UpdateLangName.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "Language"));

            //Click on Add button
            UpdateLangBtn.Click();
        }
Beispiel #3
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();
        }