コード例 #1
0
ファイル: Program.cs プロジェクト: AvaYu/Competition
            public void SaveInvalidSkill()
            {
                // Creates a toggle for the given test, adds all log events under it
                test = extent.StartTest("Save an invalid skill");

                // ShareSkill object and save an invalid skill
                ShareSkill obj = new ShareSkill();

                obj.SaveInvalidSkill();

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

                Assert.That(actualtext.Text, Is.EqualTo("Please complete the form correctly."));
            }