Lack of results for node module
Opened this issue · 1 comments
Zack24441 commented
Hi,
I tried to use aatt node module like below:
const content = await testPage.content();
const result = await evaluate({
source: content,
output: "html",
engine: "axe",
level: "WCAG2A"
});
await fs.writeFile('./aatt-report.html', result,{}, (err)=>{
if (err) throw err;
});
testPage is object Page from Playwright framework.
Current results for each engine:
- htmlcs -> 'Unable to load the address!'
- axe -> lack of results, proccess take too long time
- chrome -> lack of results, proccess take too long time
Could please tell what is wrong?
Versions:
"playwright": "^1.12.3",
"aatt": "^1.0.1",
Thanks!
mpnkhan commented
Some problem with axe engine it seems. For now use htmlcs
instead.
const { evaluate } = require('aatt');
const fs = require('fs');
evaluate({
source: "<html xml:lang='en-gb'><head><title>Foo</title></head><body><p>Bar</p></body></html>",
output: "json",
engine: "htmlcs",
level: "WCAG2A"
}).then(result => {
console.log('Results', result);
fs.writeFile('./aatt-report.html', result,{}, (err)=>{
if (err) throw err;
});
});