October 18, 2010

Webaii Finding Images

Using Webaii, here's how to validate that an image is loading correctly on a page:

// Validate Image on Page
Assert.IsNotNull(Find.ByAttributes<HtmlImage>("src=~logo.gif"), "Logo Image is not on the page");

Very useful to have as a code snip.


Add your Comments

Feel free to leave a comment about this post.

- Feel Free to add HTML to your comment!