Skip to content
hekra01 edited this page Jan 27, 2017 · 7 revisions
  • How to use QtWebDriver in headless mode?

    This can be dealt with at host level, Qt level or using docker.

    See https://github.com/cisco-open-source/qtwebdriver/issues/29 for each option.

  • How to simulete KeyPress auto repeat?

    When processing:

    • /session/:sessionId/keys
    • /session/:sessionId/element/:id/value

    For each sequence of similar keys in the value, WD will generate QKeyEvents with the isAutoRepeatthe next events

    • first KeyPress event isAutoRepeat = false
    • last KeyRelease event isAutoRepeat = false
    • all intermediary events isAutoRepeat = true
    • E.G: This python test code elem.send_keys(Keys.UP + Keys.UP)will generate
      • Event 1: type = press, code = UP, isAutoRepeat = false
      • Event 2: type = release, code = UP, isAutoRepeat = true
      • Event 3: type = press, code = UP, isAutoRepeat = true
      • Event 4: type = release, code = UP, isAutoRepeat = false
  • How are Undefined keys processed?

    When processing key codes with:

Clone this wiki locally