Actions API

A low-level interface for providing virtualised device input to the web browser.

Unlike the high-level element interactions, which conducts additional validations, the Actions API provides granular control over input devices.

Selenium provides access to 3 input sources: key inputs for keyboard devices, pointer inputs for a mouse, pen or touch device, and a wheel inputs for scroll wheel support.


Keyboard actions

A representation of any key input device for interacting with a web page.

Mouse actions

A representation of any pointer device for interacting with a web page.

Scroll wheel actions

A representation of a scroll wheel input device for interacting with a web page.

Last modified January 12, 2022: Example code (#920) [deploy site] (d22cd1c186e)