axe-webdriverjs icon indicating copy to clipboard operation
axe-webdriverjs copied to clipboard

Why does my axe-webdriverjs api return null to the console?

Open ihowa opened this issue 5 years ago • 3 comments

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

ihowa avatar Aug 08 '20 15:08 ihowa

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?

straker avatar Aug 10 '20 21:08 straker

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 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.

ihowa avatar Aug 11 '20 08:08 ihowa

Out of curiosity, what does your package.json dependencies look like? Specifically the axe-webdriverjs and selenium-webdriver versions

straker avatar Aug 11 '20 21:08 straker