

Wget -quiet -output-document=- | gpg -dearmor > /etc/apt//google-archive.gpg & \
RUN apt-get update & apt-get install gnupg wget -y & \ # Note: this installs the necessary libs to make the browser work with Puppeteer. That's why we prefer Debian variants to make it easier.Įvery major version of Node.js in built over a version of Debian, and that Debian version comes with an old version of Chromium, which one could be not compatible with the latest version of Puppeteer.ĮNV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true Yeah, we can run Chromium using Alpine Linux, but we'll need a few extra steps to make it run. it's important to know what are the different between the available variants. we want to run a web browser inside a container. This is because it was tested with the latest Chromium stable release. If we use the Docker images for Node.js v14 LTS Gallium, when installing the chromium package from apt, it will be v90.0, which can have compatibility issues with the latest Puppeteer.

This guide helps to use Puppeteer inside a Docker container using the Node.js image. We'll be happy to help.Puppeteer is a Node.js library which provides a high-level API to control Chromium (or Firefox) browsers over the DevTools Protocol. If issues persist, contact your Deque representative directly, reach us via our support desk, or send us an email. Initially, one or more of the components within this project may be incompatible with your environment.

If desired, you can configure the project to scan any web addressable page by changing the test case URLs with src/*.test.js and re-running the tests. These reports allow you to easily consume the results of the accessibility scans. Once the tests have finished running, the raw results are logged to the console as well as compiled into an HTML report by the axe DevTools HTML reporter. run npm test or yarn test to run the test scripts.run the command npm install or yarn to install the node modules.Using your command shell, navigate to the location of the project, then within the project to the src directory.Move the project to the desired location in your file system and unzip.Download the zipped project that matches your developing and testing environment.They also require a WebDriver matching the desired demo project, either Puppeteer, WebDriverIO, or WebDriverJS Link to Download Project Zip These projects require a NodeJS development environment including NPM or Yarn. For information on how to install axe DevTools HTML into an existing project, read the guide on installing from a bundle, from your own artifact repository, or from Deque's Agora. This demo project familiarizes users with using axe DevTools HTML with Puppeteer and Mocha and can generate reports without needing an existing web project to integrate with.
