dequelabs / axe-core-nuget

Axe Core integration for C# .NET
19 stars 6 forks source link

Able to run test with additional custom rules #146

Open huaxing-yuan opened 10 months ago

huaxing-yuan commented 10 months ago

Which package is this feature for?

Feature description

I would like to extend the test via some custom rules. It seems possible via axe-core javascript library as described here : https://github.com/dequelabs/axe-core/issues/221 But i haven't find a way to do the same in C# library. The AxeBuilder class from Selenium package has a WithRules() method but doesn't accept customized rule set.

Is it possible to add this feature (configue axe core library with a json object described here) or update documents to do so? (same request for java library)

Thanks in advance


I discovered the function AxeBuilder.ConfigureAxe method which calls branding.js. Is it possible to run a customized .js file so we can call axe.configure and give it some additional ruleset ?