private ShouldFindElementsByXPath ( ) : void | ||
Результат | void |
public void ShouldFindElementsByXPath()
{
driver.Url = xhtmlTestPage;
ReadOnlyCollection<IWebElement> divs = driver.FindElements(By.XPath("//div"));
Assert.AreEqual(divs.Count, 8);
}