public void ShouldFindElementsByXPath() { driver.Url = xhtmlTestPage; ReadOnlyCollection<IWebElement> divs = driver.FindElements(By.XPath("//div")); Assert.AreEqual(divs.Count, 8); }