OpenQA.Selenium.XPathElementFindingTest.ShouldBeAbleToIdentifyElementsByClass C# (CSharp) Method

ShouldBeAbleToIdentifyElementsByClass() private method

private ShouldBeAbleToIdentifyElementsByClass ( ) : void
return void
        public void ShouldBeAbleToIdentifyElementsByClass()
        {
            driver.Url = xhtmlTestPage;

            String header = driver.FindElement(By.XPath("//h1[@class='header']")).Text;
            Assert.AreEqual(header, "XHTML Might Be The Future");
        }