Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lack of results for node module #61

Open
Zack24441 opened this issue Jul 8, 2021 · 1 comment
Open

Lack of results for node module #61

Zack24441 opened this issue Jul 8, 2021 · 1 comment

Comments

@Zack24441
Copy link

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!

@Zack24441 Zack24441 changed the title None of engine return results for node module Lack of results for node module Jul 8, 2021
@mpnkhan
Copy link
Contributor

mpnkhan commented Sep 1, 2021

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;
         });

});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants