Search code examples
pa11y

Pa11y actions reference / documentation


How do you enter values to match a name="" attribute, or class=""? I'm guessing that # is referring to id="" only? If HTML ID attributes are not available there needs to be a way to match other attributes or the element itself.

Is there a reference for how to use actions?

actions: [
    'set field #login_field to abc',
    'set field #password to defghi',
    'click element #password"',
    'wait for url to be http://github.com'
],

Solution

  • I found the actions reference, although the documentation is very limited for this project. Selectors seem limited to IDs as far as I can tell, not much good if there aren't any. I was hoping for Selenium-type selectors inc Xpath.

    Pa11y Documentation - Actions