{
  "info": {
    "testId": "reqInfoAboutSwitchOnState",
    "title": "Request information about a switch that is on",
    "references": [
      {
        "refId": "example",
        "type": "metadata",
        "value": "https://www.w3.org/WAI/ARIA/apg/patterns/switch/examples/switch/",
        "linkText": "APG Example: Switch"
      },
      {
        "refId": "switch",
        "type": "aria",
        "value": "switch",
        "linkText": "switch"
      },
      {
        "refId": "aria-checked",
        "type": "aria",
        "value": "aria-checked",
        "linkText": "aria-checked"
      }
    ],
    "presentationNumber": 18
  },
  "target": {
    "ats": [
      {
        "key": "jaws",
        "settings": "virtualCursor",
        "name": "JAWS"
      },
      {
        "key": "jaws",
        "settings": "pcCursor",
        "name": "JAWS"
      },
      {
        "key": "nvda",
        "settings": "browseMode",
        "name": "NVDA"
      },
      {
        "key": "nvda",
        "settings": "focusMode",
        "name": "NVDA"
      },
      {
        "key": "voiceover_macos",
        "settings": "defaultMode",
        "name": "VoiceOver for macOS"
      }
    ],
    "at": {
      "key": "nvda",
      "settings": "browseMode_focusMode",
      "name": "NVDA",
      "raw": {
        "name": "NVDA",
        "key": "nvda",
        "defaultConfigurationInstructionsHTML": "Configure NVDA with default settings. For help, read &lt;a href=&quot;https://github.com/w3c/aria-at/wiki/Configuring-Screen-Readers-for-Testing&quot;&gt;Configuring Screen Readers for Testing&lt;/a&gt;.",
        "assertionTokens": {
          "screenReader": "NVDA",
          "interactionMode": "focus mode",
          "readingMode": "browse mode",
          "readingCursor": "browse mode caret"
        },
        "settings": {
          "browseMode": {
            "screenText": "browse mode on",
            "instructions": [
              "Press &lt;kbd&gt;Insert&lt;/kbd&gt;+&lt;kbd&gt;Space&lt;/kbd&gt;.",
              "If NVDA made the focus mode sound, press &lt;kbd&gt;Insert&lt;/kbd&gt;+&lt;kbd&gt;Space&lt;/kbd&gt; again to turn browse mode back on."
            ]
          },
          "focusMode": {
            "screenText": "focus mode on",
            "instructions": [
              "Press &lt;kbd&gt;Insert&lt;/kbd&gt;+&lt;kbd&gt;Space&lt;/kbd&gt;.",
              "If NVDA made the browse mode sound, press &lt;kbd&gt;Insert&lt;/kbd&gt;+&lt;kbd&gt;Space&lt;/kbd&gt; again to turn focus mode back on."
            ]
          }
        }
      }
    },
    "referencePage": "reference/2022-8-1_103716/switch.setFocusOnAndTurnOnSwitch.html",
    "setupScript": {
      "script": "setFocusOnAndTurnOnSwitch",
      "scriptDescription": "sets focus on the 'Notifications' switch, and sets its state to 'on'",
      "name": "setFocusOnAndTurnOnSwitch",
      "source": "// sets focus on the 'Notifications' switch, and sets its state to 'on'\ntestPageDocument.querySelector('[role=\"switch\"]').setAttribute('aria-checked', 'true');\ntestPageDocument.querySelector('[role=\"switch\"]').focus();\n",
      "modulePath": "scripts/setFocusOnAndTurnOnSwitch.module.js",
      "jsonpPath": "scripts/setFocusOnAndTurnOnSwitch.jsonp.js"
    }
  },
  "instructions": {
    "instructions": "Starting at the 'Notifications' switch, read information about the switch.",
    "mode": {
      "browseMode": [
        "Configure NVDA with default settings. For help, read &lt;a href=&quot;https://github.com/w3c/aria-at/wiki/Configuring-Screen-Readers-for-Testing&quot;&gt;Configuring Screen Readers for Testing&lt;/a&gt;.",
        "Press &lt;kbd&gt;Insert&lt;/kbd&gt;+&lt;kbd&gt;Space&lt;/kbd&gt;.",
        "If NVDA made the focus mode sound, press &lt;kbd&gt;Insert&lt;/kbd&gt;+&lt;kbd&gt;Space&lt;/kbd&gt; again to turn browse mode back on."
      ],
      "focusMode": [
        "Configure NVDA with default settings. For help, read &lt;a href=&quot;https://github.com/w3c/aria-at/wiki/Configuring-Screen-Readers-for-Testing&quot;&gt;Configuring Screen Readers for Testing&lt;/a&gt;.",
        "Press &lt;kbd&gt;Insert&lt;/kbd&gt;+&lt;kbd&gt;Space&lt;/kbd&gt;.",
        "If NVDA made the browse mode sound, press &lt;kbd&gt;Insert&lt;/kbd&gt;+&lt;kbd&gt;Space&lt;/kbd&gt; again to turn focus mode back on."
      ]
    }
  },
  "commands": [
    {
      "id": "ins+tab",
      "keypresses": [
        {
          "id": "ins+tab",
          "keystroke": "Insert+Tab"
        }
      ],
      "assertionExceptions": [],
      "keystroke": "Insert+Tab",
      "presentationNumber": 16,
      "settings": "browseMode"
    },
    {
      "id": "ins+up",
      "keypresses": [
        {
          "id": "ins+up",
          "keystroke": "Insert+Up Arrow"
        }
      ],
      "assertionExceptions": [],
      "keystroke": "Insert+Up Arrow",
      "presentationNumber": 16.1,
      "settings": "browseMode"
    },
    {
      "id": "ins+tab",
      "keypresses": [
        {
          "id": "ins+tab",
          "keystroke": "Insert+Tab"
        }
      ],
      "assertionExceptions": [],
      "keystroke": "Insert+Tab",
      "presentationNumber": 17,
      "settings": "focusMode"
    },
    {
      "id": "ins+up",
      "keypresses": [
        {
          "id": "ins+up",
          "keystroke": "Insert+Up Arrow"
        }
      ],
      "assertionExceptions": [],
      "keystroke": "Insert+Up Arrow",
      "presentationNumber": 17.1,
      "settings": "focusMode"
    }
  ],
  "assertions": [
    {
      "assertionId": "roleSwitch",
      "priority": 1,
      "assertionStatement": "Role 'switch' is conveyed",
      "assertionPhrase": "convey role 'switch'",
      "refIds": "switch",
      "tokenizedAssertionStatements": {},
      "tokenizedAssertionPhrases": {}
    },
    {
      "assertionId": "nameNotifications",
      "priority": 1,
      "assertionStatement": "Name 'Notifications' is conveyed",
      "assertionPhrase": "convey name 'Notifications'",
      "refIds": "switch",
      "tokenizedAssertionStatements": {},
      "tokenizedAssertionPhrases": {}
    },
    {
      "assertionId": "stateOn",
      "priority": 1,
      "assertionStatement": "State 'on' is conveyed",
      "assertionPhrase": "convey state 'on'",
      "refIds": "aria-checked",
      "tokenizedAssertionStatements": {},
      "tokenizedAssertionPhrases": {}
    }
  ]
}