Input.synthesizeTapGestureSynthesizes a tap gesture over a time period by issuing appropriate touch events.
| Name | Type | Description |
|---|---|---|
x | number | X coordinate of the start of the gesture in CSS pixels. |
y | number | Y coordinate of the start of the gesture in CSS pixels. |
duration (optional) | integer | Duration between touchdown and touchup events in ms (default: 50). |
tapCount (optional) | integer | Number of times to perform the tap (e.g. 2 for double tap, default: 1). |
gestureSourceType (optional) | GestureSourceType | Which type of input events to be generated (default: 'default', which queries the platform for the preferred input type). |
{
"id": 1,
"method": "Input.synthesizeTapGesture",
"params": {
"x": 100,
"y": 100
}
}
{
"id": 1,
"result": {}
}
const result = await send('Input.synthesizeTapGesture', {"x": 100, "y": 100});
console.log(result);