Skip to content

Commit

Permalink
Re-expose function
Browse files Browse the repository at this point in the history
  • Loading branch information
TroyWalshProf committed Feb 2, 2021
1 parent d9f342f commit f7835a9
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions Selenium.Axe/Selenium.Axe/HtmlReport.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,16 +74,10 @@ public static void CreateAxeHtmlReport(this IWebDriver webDriver, string destina
public static void CreateAxeHtmlReport(this IWebDriver webDriver, IWebElement context, string destination, ReportTypes requestedResults = ReportTypes.All)
{
var axeBuilder = new AxeBuilder(webDriver);
context.CreateAxeHtmlReportFile(axeBuilder.Analyze(context), destination, requestedResults);
context.CreateAxeHtmlReport(axeBuilder.Analyze(context), destination, requestedResults);
}


public static void CreateAxeHtmlReport(this IWebDriver webdriver, AxeResult results, string destination, ReportTypes requestedResults = ReportTypes.All)
{
webdriver.CreateAxeHtmlReportFile(results, destination, requestedResults);
}

private static void CreateAxeHtmlReportFile(this ISearchContext context, AxeResult results, string destination, ReportTypes requestedResults)
public static void CreateAxeHtmlReport(this ISearchContext context, AxeResult results, string destination, ReportTypes requestedResults = ReportTypes.All)
{
// Get the unwrapped element if we are using a wrapped element
context = context is IWrapsElement ? (context as IWrapsElement).WrappedElement : context;
Expand Down

0 comments on commit f7835a9

Please sign in to comment.