Exemplo n.º 1
0
        internal void AddNewSkills()
        {
            // Populate the Excel Sheet
            GlobalDefinitions.ExcelLib.PopulateInCollection(Base.ExcelPath, "Profile");
            Thread.Sleep(1000);

            // Click the Skills tab
            SkillsTab.Click();

            // Click the Add New button
            Thread.Sleep(1000);
            SkillsNewButton.Click();

            // Input the Skills name field with valid characers
            SkillsName.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "SkillsName"));

            // Input the Skills level field with valid characers
            SkillsLevel.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "SkillsLevel"));

            // Click the Add button
            SkillsAddButton.Click();
            Base.test.Log(LogStatus.Info, "has been added to your skills");
            Thread.Sleep(500);

            // Verify if add the new Skill successfully
            IWebElement actualtext = GlobalDefinitions.driver.FindElement(By.XPath("//div[contains(@class,'ns-type-success')]"));

            Assert.That(actualtext.Text, Is.EqualTo("C# has been added to your skills"));
        }
Exemplo n.º 2
0
 //Click on Skill tab
 public void ClickOnSkillTab()
 {
     driver.WaitForElementIsVisible(SkillsTab);
     SkillsTab.Click();
 }
Exemplo n.º 3
0
 public void NavigateToSkillsTab()
 {
     GenericWait.ElementIsClickable(GlobalDefinitions.driver, "XPath", "//a[contains(text(),'Skills')]", 2);
     SkillsTab.Click();
 }