This is the JavaScript behind recheck-web and the corresponding Chrome extension. What it does is collect all attributes of all elements of the rendered DOM. This can then be collected by recheck-web or sent to retest.de.
npm i recheck-web-jsimport { mapElement } from "recheck-web-js";
var htmlNode = document.getElementsByTagName("html")[0];
var html = transform(htmlNode);
var allElements = mapElement(htmlNode, "//html[1]", {
"//html[1]" : html
});
console.log(allElements);npm run testThe release of npm module and webjar is performed on travis. To trigger a build update the version in npm files and create a tag with:
npm version patch && git push --tagsIf you want to release a minor version use:
npm version minor && git push --tags