internal void AddLanguage(string LangName, string LangLevel)
 {
     AddNewButton.Click();                  //Click on AddNew button
     AddNewLanTextInput.SendKeys(LangName); //enter language name
     LanguageLevel.SendKeys(LangLevel);     //enter language level
     AddButton.Click();                     //click on Add button
 }
        public void AddNewTaxRate(TaxRate rate)
        {
            AddNewButton.Click();
            AddTaxRatePage TaxRate = new AddTaxRatePage(driver);

            TaxRate.AddTaxRate(rate);
        }
Пример #3
0
        public void AddNewGeoZone(GeoZone geoZone)
        {
            AddNewButton.Click();
            AddGeoZonePage GeoZone = new AddGeoZonePage(driver);

            GeoZone.AddNewGeoZone(geoZone);
        }
Пример #4
0
        public void AddLanguageSteps()
        {
            GlobalDefinitions.ExcelLib.PopulateInCollection(Base.ExcelPath, "LanguagesAndSkills");
            AddNewButton.Click();
            EnterLanguage.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "Language"));
            LangLevelDD.Click();
            SelectElement langLevel = new SelectElement(LangLevelDD);

            langLevel.SelectByValue(GlobalDefinitions.ExcelLib.ReadData(3, "Language Level"));
            AddButton.Click();
            GlobalDefinitions.WaitForElement(GlobalDefinitions.driver, By.XPath("//div[contains(@class,'ns-box ns-growl ns-effect-jelly ns-type-success ns-show')]"), 10);
        }