Open makrandv opened 1 year ago
In the first "node" object, the "target" field is correctly represented as an ArrayList of Strings:
"target" : [ ".test-listViewManager" ]
However, in the second "node" object, the "target" field is represented as a nested array, which is not expected:
"target" : [ [ "one-appnav", "one-app-nav-bar", ".navUL" ] ]
Fixed in this PR
@makrandv Can you please scan your website with AXE Extension and check is the results displayed correctly? For axeRunner the origin axe.min.js is used from axe-core, and nested array doesn't looks correct for me. Can you please include the scan result here? You can use next script
var script = document.createElement('script');
script.src = 'https://cdnjs.cloudflare.com/ajax/libs/axe-core/4.7.2/axe.min.js';
document.head.appendChild(script);
script.onload = function() {
axe.run(function(err, results) {
if (err) throw err;
console.log(JSON.stringify(results, null, 2));
});
};
@sridharbandi I am using your accessibility libray for accessibility testing of Salesforce UI , however the test is failing when after " axeRunner.execute();" Below is the code for executing the Axe scanning
Below is the error I am getting
com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize value of type
java.lang.String
from Array value (tokenJsonToken.START_ARRAY
) at [Source: (StringReader); line: 287, column: 20] (through reference chain: io.github.sridharbandi.modal.axe.Issues["incomplete"]->java.util.ArrayList[1]->io.github.sridharbandi.modal.axe.IssueType["nodes"]->java.util.ArrayList[0]->io.github.sridharbandi.modal.axe.Node["target"]->java.util.ArrayList[0])[GeneratedJSON.txt](https://github.com/sridharbandi/Java-a11y/files/11350396/GeneratedJSON.txt)
Any help in resolving this error is appreciated.
The code works fine I run it against Google page (google.co.nz)