private ShouldReturnNullWhenGettingTheValueOfAnAttributeThatIsNotListed ( ) : void | ||
return | void |
public void ShouldReturnNullWhenGettingTheValueOfAnAttributeThatIsNotListed()
{
driver.Url = simpleTestPage;
IWebElement head = driver.FindElement(By.XPath("/html"));
string attribute = head.GetAttribute("cheese");
Assert.IsNull(attribute);
}