axe-webdriverjs
axe-webdriverjs copied to clipboard
Why does my axe-webdriverjs api return null to the console?
I followed the instructions as per the documentation and even ran the axe chrome extension on the given url so I know that it produces results. However when I run it as shown below it returns null
var AxeBuilder = require('axe-webdriverjs');
var WebDriver = require('selenium-webdriver');
var driver = new WebDriver.Builder()
.forBrowser('chrome')
.build();
driver
.get('https://robdodson.me')
.then(function() {
AxeBuilder(driver).analyze(function(err, results) {
if (err) {
// Handle error somehow
}
console.log(results);
});
});
I ran the code and get a list of results back, so I'm not sure what may be happening. Does the err show anything if you log it?
I ran the code and get a list of results back, so I'm not sure what may be happening. Does the
errshow anything if you log it?
I tried logging the err and also got null returned to me. As this is my first time using the axe-webdriverjs I really have no clue where else to start looking for issues.
Out of curiosity, what does your package.json dependencies look like? Specifically the axe-webdriverjs and selenium-webdriver versions