public void HtmlAssertTests()
        {
            // Attribute checks
            HtmlSpan span = Find.ById <HtmlSpan>("Warning");

            span.AssertAttribute().Exists("style");
            span.AssertAttribute().Value("style", ArtOfTest.Common.StringCompareType.Contains, "color");

            // Checkbox checks
            HtmlInputCheckBox cbx = Find.ById <HtmlInputCheckBox>("Checkbox1");

            cbx.AssertCheck().IsTrue();
            cbx.Click();
            cbx.AssertCheck().IsFalse();

            // Content checks
            span.AssertContent().InnerText(StringCompareType.Contains, "Warning");
            span.AssertContent().InnerText(StringCompareType.NotContain, "Error");
            span.AssertContent().StartTagContent(StringCompareType.StartsWith, "<span");

            HtmlDiv topdiv = Find.ById <HtmlDiv>("topmost");

            topdiv.AssertContent().TextContent(StringCompareType.Exact, "Top most text");
            topdiv.AssertContent().InnerText(StringCompareType.Exact,
                                             "Top most textMiddle level textInnermost text");
            topdiv.AssertContent().OuterMarkup(StringCompareType.EndsWith,
                                               "Innermost text</DIV></DIV></DIV>");
            topdiv.AssertContent().InnerMarkup(StringCompareType.EndsWith,
                                               "Innermost text</DIV></DIV>");

            // Select checks
            HtmlSelect select = Find.ById <HtmlSelect>("color_product");

            select.AssertSelect().ItemsCountIs(NumberCompareType.Equals, 5);
            select.AssertSelect().SelectedIndex(NumberCompareType.Equals, 0);
            select.AssertSelect().SelectedText(StringCompareType.Exact, "Color : Blue");
            select.AssertSelect().SelectedValue(StringCompareType.Exact, "Blue");

            select.SelectByIndex(3);
            select.AssertSelect().SelectedIndex(NumberCompareType.Equals, 3);
            select.AssertSelect().SelectedText(StringCompareType.Exact, "Color : Orange");
            select.AssertSelect().SelectedValue(StringCompareType.Exact, "Orange");

            select.AssertSelect().TextExists("Color : Black");
            select.AssertSelect().TextExistsNot("Color : Magenta");
            select.AssertSelect().ValueExists("Black");
            select.AssertSelect().ValueExistsNot("Magenta");

            // Style checks
            NameValueCollection styles = span.Styles;

            span.AssertStyle().Font(ArtOfTest.WebAii.Controls.HtmlControls.HtmlAsserts.HtmlStyleFont.Style, "italic");
            span.AssertStyle().Text(ArtOfTest.WebAii.Controls.HtmlControls.HtmlAsserts.HtmlStyleText.TextAlign, "right");
            span.AssertStyle().ColorAndBackground(ArtOfTest.WebAii.Controls.HtmlControls.HtmlAsserts.HtmlStyleColorAndBackground.Color, "red",
                                                  ArtOfTest.WebAii.Controls.HtmlControls.HtmlAsserts.HtmlStyleType.Computed,
                                                  StringCompareType.Exact);

            // Table checks
            HtmlTable table = Find.ById <HtmlTable>("outertable1");

            table.AssertTable().ColumnCount(NumberCompareType.Equals, 3);
            table.AssertTable().ColumnRange(NumberRangeCompareType.InRange, 2, 5);
            table.AssertTable().RowCount(NumberCompareType.Equals, 3);
            table.AssertTable().RowRange(NumberRangeCompareType.OutsideRange, 1, 2);
            table.AssertTable().Contains(StringCompareType.Contains, "TD5");
            table.AssertTable().Contains(StringCompareType.NotContain, "TD37");
        }