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