public static HtmlString ResetDatabaseLink(this IHtmlHelper html)
        {
            if (!WebTestManager.IsTddExecutionMode())
            {
                return(null);
            }

            if (html.Request().IsAjaxCall())
            {
                return(null);
            }

            if (WebTestManager.IsSanityExecutionMode())
            {
                html.RunJavascript("page.skipNewWindows();");
            }

            return(new HtmlString(WebTestManager.GetWebTestWidgetHtml(Context.Http.Request)));
        }
Ejemplo n.º 2
0
        public static HtmlString WebTestWidget(this IHtmlHelper html)
        {
            if (!WebTestConfig.IsActive())
            {
                return(null);
            }

            if (Context.Current.Request().IsAjaxCall())
            {
                return(null);
            }

            if (WebTestConfig.IsAutoExecMode)
            {
                html.RunJavascript("page.skipNewWindows();");
            }

            return(new HtmlString(WebTestManager.GetWebTestWidgetHtml()));
        }