OpenQA.Selenium.ElementFindingTest.ShouldBeAbleToClickOnLinksWithNoHrefAttribute C# (CSharp) Method

ShouldBeAbleToClickOnLinksWithNoHrefAttribute() private method

private ShouldBeAbleToClickOnLinksWithNoHrefAttribute ( ) : void
return 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