Input.synthesizeTapGesture

Synthesizes a tap gesture over a time period by issuing appropriate touch events.

{
  "name": "synthesizeTapGesture",
  "async": true,
  "parameters": [
    {
      "name": "x",
      "type": "integer",
      "description": "X coordinate of the start of the gesture in CSS pixels."
    },
    {
      "name": "y",
      "type": "integer",
      "description": "Y coordinate of the start of the gesture in CSS pixels."
    },
    {
      "name": "duration",
      "type": "integer",
      "optional": true,
      "description": "Duration between touchdown and touchup events in ms (default: 50)."
    },
    {
      "name": "tapCount",
      "type": "integer",
      "optional": true,
      "description": "Number of times to perform the tap (e.g. 2 for double tap, default: 1)."
    },
    {
      "name": "gestureSourceType",
      "$ref": "GestureSourceType",
      "optional": true,
      "description": "Which type of input events to be generated (default: 'default', which queries the platform for the preferred input type)."
    }
  ],
  "description": "Synthesizes a tap gesture over a time period by issuing appropriate touch events.",
  "experimental": true,
  "handlers": [
    "browser"
  ]
}