public static AxeResult Analyze(this IWebDriver webDriver)
        {
            if (webDriver == null)
            {
                throw new ArgumentNullException(nameof(webDriver));
            }

            AxeBuilder axeBuilder = new AxeBuilder(webDriver);

            return(axeBuilder.Analyze());
        }
        public static AxeResult Analyze(this IWebDriver webDriver, IWebElement context, AxeBuilderOptions axeBuilderOptions)
        {
            if (webDriver == null)
            {
                throw new ArgumentNullException(nameof(webDriver));
            }

            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }

            AxeBuilder axeBuilder = new AxeBuilder(webDriver, axeBuilderOptions);

            return(axeBuilder.Analyze(context));
        }
Exemple #3
0
        public static void CreateAxeHtmlReport(this IWebDriver webDriver, IWebElement context, string destination)
        {
            AxeBuilder axeBuilder = new AxeBuilder(webDriver);

            context.CreateAxeHtmlReport(axeBuilder.Analyze(context), destination);
        }
Exemple #4
0
        public static void CreateAxeHtmlReport(this IWebDriver webDriver, string destination)
        {
            AxeBuilder axeBuilder = new AxeBuilder(webDriver);

            webDriver.CreateAxeHtmlReport(axeBuilder.Analyze(), destination);
        }
        public static void CreateAxeHtmlReport(this IWebDriver webDriver, IWebElement context, string destination, ReportTypes requestedResults)
        {
            var axeBuilder = new AxeBuilder(webDriver);

            context.CreateAxeHtmlReport(axeBuilder.Analyze(context), destination, requestedResults);
        }