Open kussmaul opened 2 years ago
The debug flag (-d
) should print out the actions as they're ran.
Thank you, @joeyciechanowicz. The debug flag works for pa11y
but not pa11y-ci
.
Should I propose adding it to pa11y-ci
? (similar to https://github.com/pa11y/pa11y-ci/issues/73)
A more general write action could have other uses, especially if it could extract info from a page.
I think if we were to support passing the --debug
flag to pa11y
from pa11y-ci
then we could avoid adding a new action?
Yes, pa11y-ci --debug
would handle my use case.
Moving issue to the pa11y-ci repo.
I have a set of Pa11y tests (run from
pa11y-ci
), each with aurl
and a set ofactions
to set fields, click elements, and wait for paths to change or other conditions. When I run/debug these tests, I often get messages like this, and then have to figure out which action caused the problem.More informative messages would be nice, but for now I use
screen capture
every few actions to trace what happens. I think it would be convenient and not difficult to add an action that writes text to the console. Something likeconsole log <message>
orwrite text <message>
. This could even be extended toconsole error <message>
orwrite url
orwrite field <selector>
.Does this seem worth doing? Thoughts on syntax?