OpenQA.Selenium.ElementFindingTest.ShouldBeAbleToClickOnLinksWithNoHrefAttribute C# (CSharp) Méthode

ShouldBeAbleToClickOnLinksWithNoHrefAttribute() private méthode

private ShouldBeAbleToClickOnLinksWithNoHrefAttribute ( ) : void
Résultat void
        public void ShouldBeAbleToClickOnLinksWithNoHrefAttribute()
        {
            driver.Url = javascriptPage;

            IWebElement element = driver.FindElement(By.LinkText("No href"));
            element.Click();

            // if any exception is thrown, we won't get this far. Sanity check
            Assert.AreEqual("Changed", driver.Title);
        }
ElementFindingTest