API …
Web elements

Mouse & keyboard actions

Double click, right click with a custom context menu, click-and-hold and keyboard event capture.

Practice tasks

  • Double-click the button and assert Field 2 copies Field 1.
  • Right-click the box, choose “Rename” and assert the result.
  • Hold the button for 2 s with mouse.down() / wait / mouse.up().
  • Press Shift+A and assert key, code and modifiers.
  • Press Ctrl+K inside the box to trigger the shortcut.

More Web elements practice