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);
        }
 private void AddNewButton_GotFocus(object sender, RoutedEventArgs e)
 {
     LibraryLabel.Content = "Add a New Library";
     AddNewButton.Clear();
     AddNewButton.FontSize   = 15;
     AddNewButton.FontWeight = FontWeights.Normal;
 }
Esempio n. 4
0
        public void AddNewGeoZone(GeoZone geoZone)
        {
            AddNewButton.Click();
            AddGeoZonePage GeoZone = new AddGeoZonePage(driver);

            GeoZone.AddNewGeoZone(geoZone);
        }
Esempio n. 5
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);
        }
Esempio n. 6
0
 void ReleaseDesignerOutlets()
 {
     if (AddNewButton != null)
     {
         AddNewButton.Dispose();
         AddNewButton = null;
     }
     if (SearchBar != null)
     {
         SearchBar.Dispose();
         SearchBar = null;
     }
 }
Esempio n. 7
0
        void ReleaseDesignerOutlets()
        {
            if (AddNewButton != null)
            {
                AddNewButton.Dispose();
                AddNewButton = null;
            }

            if (NavigateButton != null)
            {
                NavigateButton.Dispose();
                NavigateButton = null;
            }
        }
Esempio n. 8
0
 void ReleaseDesignerOutlets()
 {
     if (AddNewButton != null)
     {
         AddNewButton.Dispose();
         AddNewButton = null;
     }
     if (ItemListTableView != null)
     {
         ItemListTableView.Dispose();
         ItemListTableView = null;
     }
     if (SearchBar != null)
     {
         SearchBar.Dispose();
         SearchBar = null;
     }
 }