public void WaitForStyles()
        {
            HtmlDiv div = this.Elements.GetHtml("mainDiv").As <HtmlDiv>();

            exec(5);
            div.Wait.ForStyles("backgroundColor=blue");

            ActiveBrowser.Refresh();
            div.Refresh();

            exec(5);

            string s = div.GetComputedStyleValue("backgroundColor");

            // Wait until background color is NOT yellow.
            div.Wait.ForStylesNot(true, "backgroundColor=yellow");
        }