Pinch action

Pinch is a mobile-only action that simulates a user touching the screen of a mobile device with two fingers and performing a pinch gesture, pulling the two fingers towards each other on the screen. This action is only supported in the Mobile and Chrome agents.

The Pinch control is only enabled during the recording phase when the mobile application allows for pinch/span gestures on that particular page. If the application does not directly support these gestures on the given page, the control will be disabled.

The following properties are stored in this action:

  • target – Indicates which element on the page the user is performing the pinch on.
  • xStart1, yStart1 – The x,y coordinates for the start point of the first “finger” in the pinch gesture.
  • xEnd1, yEnd1 – The x,y coordinates for the end point of the first “finger” in the pinch gesture.
  • xStart2, yStart2 – The x,y coordinates for the start point the second “finger” in the pinch gesture.
  • xEnd2, yEnd2 – The x,y coordinates for the end point of the second “finger” in the pinch gesture.