w3c / at-driver

AT Driver defines a protocol for introspection and remote control of assistive technology software, using a bidirectional communication channel.
https://w3c.github.io/at-driver
Other
31 stars 4 forks source link

Pausing between keypress input #33

Open zcorpan opened 1 year ago

zcorpan commented 1 year ago

As part of #26 we discussed supporting pausing, which WebDriver also supports.

WebDriver handles pauses as part of the Actions API, which also provides low-level control of keyboard, pointer and wheel input sources. (The waiting happens in https://w3c.github.io/webdriver/#ref-for-dfn-dispatch-actions-inner-1 )

I figure the message structure could be something like this, for only sending a "pause" message with 200ms duration, which could be extended to support other input sources in the future:

{
  "method": "actions.perform",
  "params": {
    "actions": [{
      "type": "none", // input source
      "items": [{
        "type": "pause", // subtype
        "duration": 200
      }]
    }]
  }
}