Skip to main content Skip to docs navigation

Touch Events

Dispatch touch events on a page element using TouchEvents:: commands.

On this page
Action
Element Finder Value
TouchEvents::Description
TouchEvents::touchstartDispatch a touchstart event on the element.
TouchEvents::touchendDispatch a touchend event on the element.
TouchEvents::touchmoveDispatch a touchmove event on the element.
TouchEvents::touchcancelDispatch a touchcancel event on the element.
TouchEvents::["touchstart","touchend"]Dispatch a sequence of touch events.

You can pass a single event name or a JSON array of event names to fire a sequence in order.