CreateAxeHTMLReport : seems to double the counts (violations, incomplete, etc) #170
-
Hi, is this correct? I also tried to use the .WithOutputFile(), and in the json produced, the number of "nodes" is correct (that would be the actual count I am looking for...) any ideas? or has anyone noticed this? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 5 replies
-
Just checked against google.com and I get the same number of violations with the Axe Chrome extension and the HTML report. |
Beta Was this translation helpful? Give feedback.
-
I am not sure if it is going to help, or make it clearer - but here is how I use it where I get the expected count that matches Chrome AxeDevTools count for the same element - but where the CreateAxeHtmlReport seems to differ on the count
Explanation : I am targeting a single element with class "tableWrapper", but I need to give it the hierarchy so it can find it : frame#bodyIframe > div#modalframe > frame#subbody > div.tableWrapper in visual studio, when inspecting the returned response : results_MyCRMModal4 returns 1 violation node, and inside that it returns 8 nodes (all the results that violate tabindex rule) - so this is what I expect. in the html report : Violations count = 32 , but inside the section it shows 1 rule violation and the 8 nodes under it... Chrome Axe DevTools : 8 results for tabindex so I know the count is correct in the code when it returns the response from .analyze() ... but if I pass that response object into .CreateAxeHtmlReport, then it outputs the 32 count for violations... I do not know where to put screenshots, but I have some based on the explanation above... |
Beta Was this translation helpful? Give feedback.
-
so here are my observations so far : So right now, it looks like at least the results returned in JSON in the output file are correct, so I can try to parse those myself in code and make my own type of reporting (it would have been too easy to use reporting out of the box even though you went to the trouble of making that available :) . if I search for an element with 2 levels (in the include instruction) - it returns counts x 2 (using the CreateAxeHTMLReport and passing the axeresults as parameter) could be some coincidence , could be our application is just really weirdly composed (iframes and all) //this returns counts x2 in the html report
//this returns counts x4 in the html report
|
Beta Was this translation helpful? Give feedback.
-
@juprog - Working on a fix, should have it out the first half of this week. |
Beta Was this translation helpful? Give feedback.
-
This should be addressed in 3.0.0 |
Beta Was this translation helpful? Give feedback.
This should be addressed in 3.0.0