[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #61631] Headless compliance check
From: |
Yuchen Pei |
Subject: |
[bug #61631] Headless compliance check |
Date: |
Wed, 8 Dec 2021 05:35:13 -0500 (EST) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Firefox/91.0 |
Follow-up Comment #1, bug #61631 (project librejs):
An initial version of this tool was added in
<https://git.savannah.gnu.org/cgit/librejs.git/commit/?id=363292644c504033b35b1dfff1342c35f17d66f4>
HEADLESS COMPLIANCE CHECK:
To check whether a webpage is LibreJS-compliant from the command line, ensure
that the extension has NOT been built with automated test suite. Then install
selenium-webdriver and geckodriver, and ensure the latter is in $PATH:
$ npm install selenium-webdriver
$ npm install geckodriver
$ export PATH=$PATH:./node_modules/.bin
Now you can check a webpage for compliance with
$ node ./compliance.js <url>
It will open the url in a headless browser, save a screenshot, and output the
compliance check result.
For example, to check the compliance of the FSF homepage, do
$ node ./compliance.js https://fsf.org
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?61631>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/