Analizar un flujo de trabajo

This page is not available in the language you requested. You have been redirected to the English version of the page.
Link to this page copied to clipboard
Not for use with personal data

El comando "spec" ejecuta un script de flujo de trabajo, interact煤a con la p谩gina y prueba la accesibilidad a medida que avanza.

Para utilizar el comando spec , necesitar谩 un archivo spec. Estos lucen algo as铆:

{
  "projects": [
    {
      "name": "deque.com",
      "id": "deque",
      "globalActions": [
        "dismiss modal \"#CybotCookiebotDialog\" with close button \"#CybotCookiebotDialogBodyButtonAccept\""
      ],
      "pageList": [{
        "name": "Homepage",
        "url": "https://www.deque.com/"
      }, {
        "name": "Search",
        "url": "https://www.deque.com/",
        "actions": [
          "type \"axe\" into element \"#searchform input\"",
          "click element \"#searchform button[type=submit]\"",
          "wait for element \".m-search-page\" to be found",
          "analyze"
        ]
      }]
    }
  ]
}

Para ejecutar este archivo de especificaciones con axe DevTools CLI, use el siguiente comando:

axe spec ./axe-workflow.json ./axe-reports

Para obtener m谩s detalles, consulte archivos de especificaciones