[TestMethod]
public void HtmlControls()
{
// Get a table on the page
HtmlTable contentTable = Find.ById<HtmlTable>("content");
// Assert its columns count
contentTable.AssertTable().ColumnCount(
NumberCompareType.GreaterThanOrEqual, 3);
// Assert its font size is 8pt
contentTable.AssertStyle().Font(HtmlStyleFont.Size, "8pt");
// Drag the table into the details div
contentTable.DragTo(Find.ById<HtmlDiv>("details"));
// Set a property on the table
contentTable.SetValue<bool>("disabled", true);
// Find all images that contain src set to foo.gif.
IList<HtmlImage> images = Find.AllByAttributes<HtmlImage>("src=~foo.gif");
}