private ShouldReturnNullWhenGettingSrcAttributeOfInvalidImgTag ( ) : void | ||
return | void |
public void ShouldReturnNullWhenGettingSrcAttributeOfInvalidImgTag()
{
driver.Url = simpleTestPage;
IWebElement img = driver.FindElement(By.Id("invalidImgTag"));
string attribute = img.GetAttribute("src");
Assert.IsNull(attribute);
}