Пример #1
0
 public void DeleteExistingSkill()
 {
     ManageListinTab.Click();
     DeleteSkillIcon.Click();
     //switch to alert popup
     //driver.SwitchTo().Alert();
     YesToDelete.Click();
 }
Пример #2
0
        public void EditExistingSkill()
        {
            //initialize excel sheet by calling the ExcelLib

            GlobalDefinitions.ExcelLib.PopulateInCollection(Base.ExcelPath, "EditSkill");

            ManageListinTab.Click();
            EditSkillIcon.Click();

            UpdateTitle.Clear();
            UpdateTitle.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "Title"));
            AddDescription.Clear();
            AddDescription.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "Description"));
            AddTags.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "Tags"));
            enterBtn.SendKeys(Keys.Return).Perform();
            AvailableDays.Click();
            AvailableStartTime.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "Start Time"));
            AvailableEndTime.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "End Time"));
            SaveSkill.Click();
            //GlobalDefinitions.WaitForElement(GlobalDefinitions.driver, By.XPath("//div[@class='ns-box ns-growl ns-effect-jelly ns-type-success ns-show']/div"), 10);
        }