I am trying to do a simple test and its not working! I get this strange message and im not sure what it means or how to make it work.
the code:
const AxeBuilder = require("@axe-core/webdriverjs");
const WebDriver = require("selenium-webdriver");
const chrome = require("selenium-webdriver/chrome");
const chromedriver = require("chromedriver");
chrome.setDefaultService(new chrome.ServiceBuilder(chromedriver.path).build());
const driver = new WebDriver.Builder().forBrowser("chrome").build();
driver.get("https://companiesmarketcap.com/").then(() => {
new AxeBuilder(driver).analyze((err, results) => {
if (err) {
//what do do with defect
}
console.log(results);
});
});