Analizzare un flusso di lavoro

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

Il comando "spec" esegue uno script del flusso di lavoro, interagendo con la pagina e testandone l'accessibilità man mano che procede.

Per utilizzare il comando spec , è necessario un file spec. Questi sembrano così:

{
  "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"
        ]
      }]
    }
  ]
}

Per eseguire questo file di specifiche con axe DevTools CLI, utilizzare il seguente comando:

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

Per maggiori dettagli, vedere file di specifiche