public void ShouldFindElementsByClassWhenItIsInTheMiddleAmongMany() { driver.Url = xhtmlTestPage; IWebElement element = driver.FindElement(By.ClassName("nameBnoise")); Assert.AreEqual(element.Text, "An H2 title"); }