Comments (6)
@drnickyoung If that's a copy from your configuration, check the spelling of the "defaults"
property.
from pa11y-ci.
Did you set ignoreHTTPSErrors
as part of the chromeLaunchConfig
? This works for me:
{
"defaults": {
"chromeLaunchConfig": {
"ignoreHTTPSErrors": true
}
}
}
from pa11y-ci.
I've tried - but in the ends I just made a new self signed certificate and added it on "Trusted Root Authorities" :)
from pa11y-ci.
Was this ever resolved, using the config scripts that is? I am facing the same error using:
{
"default": {
"chromeLaunchConfig": {
"ignoreHTTPSErrors": true
},
"standard": "WCAG2AA",
"timeout": 5000,
"wait": 2000,
"page": {
"viewport": {
"width": 320,
"height": 480
}
}
},
"urls": [
"https://xyz/",
"https://xyz/about"
]
}
and getting this back:
Errors in https://xyz/:
• Error: net::ERR_CERT_AUTHORITY_INVALID at https://xyz/
I have used ignoreHTTPSErrors in pa11y-dashboard config and it works fine at ignoring the certificate issue. Just Pa11y-ci doesn't seem to use it in the config, ot I am doing something wrong.
from pa11y-ci.
@aarongoldenthal going by the main readme "default" is correct. Changing it "defaults" creates the error:
Errors in https://xyz
• Error: page.on is not a function
Now on investigating further I see "page" is and issue, presumably it is not supported or there is some other issue. Anyway together with your suggestion I now have a working set-up:
{
"defaults": {
"chromeLaunchConfig": {
"ignoreHTTPSErrors": true
},
"standard": "WCAG2AA",
"timeout": 10000,
"wait": 5000
},
"urls": [
"https://xyz",
"https://xyz/about"
]
}
Would suggest someone reviews the main readme and updates it, default to defaults (or point out what I have got wrong!).
from pa11y-ci.
Thanks for creating this issue. It looks like this is now fixed, feel free to reopen the issue if not.
from pa11y-ci.
Related Issues (20)
- How do you output HTML results? HOT 4
- Using Cookies or useIncognitoBrowserContext in Pa11y-ci HOT 1
- Timeout is ignored - wait for element HOT 1
- Debug sitemap mode HOT 1
- Option to pass environment variable in .pa11yci file HOT 4
- Support for large sitemaps when sitemap.xml is using sitemap index files HOT 4
- Prepending base URL HOT 6
- Failing to run on ubuntu-22.04 HOT 4
- add support for xpath based locators
- Support for wait for network call
- WCAG 2.1 and 2.2 HOT 1
- Pa11y-ci support for WCAG 2.2 HOT 5
- Sitemap could not be loaded: pa11y-ci with --sitemap and proxy
- HTML reporters are unable to load HOT 6
- Rate Limiting Option HOT 2
- The sitemap "https://mysite/sitemap.xml" could not be loaded HOT 1
- Warnings and Notices
- Update Puppeteer to `22` HOT 1
- pa11y-ci uses exit code 0 when a URL "failed to run"
- Documentation and code mismatch when using sitemap and config HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pa11y-ci.