Skip to content

How do I double tap in a Mobile App

This example demonstrates how to perform double tap action.

In the solution shown below, you will see that double tap action is performed on the PDF image in HICC using the "doubleTap" command in order to Zoom In.

Solution:

# Command Target Value
Double Tapping on the PDF image
1 doubleTap xpath=(//android.widget.RelativeLayout[@resource-id="com.eureqa.eureqaprod:id/idPDFView"])[1]  

Note: In the HICC mobile app, the double tap action to Zoom In the PDF image works only for Android.

Tips, Tricks, Gotchas & Best Practices:  

  • As an alternative to "doubleTap" command, you can use the doubleTapAt command to perform the double tap action.
  • As a best practice, you are encouraged to validate visibility of any element that is expected to be displayed after the doubleTap action using assertVisible, verifyVisible or waitForVisible commands.

Feedback and Knowledge Base