Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

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

Open
ihowa opened this issue Aug 8, 2020 · 3 comments
Open

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

ihowa opened this issue Aug 8, 2020 · 3 comments

Comments

@ihowa
Copy link

ihowa commented Aug 8, 2020

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);
    });
  });
@straker
Copy link
Contributor

straker commented Aug 10, 2020

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?

@ihowa
Copy link
Author

ihowa commented Aug 11, 2020

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.

@straker
Copy link
Contributor

straker commented Aug 11, 2020

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

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

No branches or pull requests

2 participants