/
"MOBILE_PINCH" Command

"MOBILE_PINCH" Command

Description: This command is used to perform pinch operation on a mobile widget. To zoom out, you can add a number the Offset (points) field.

Usage Scenario: Suppose we want to zoom out on the Google maps app.

Procedure: Prepare steps that run the app and create a step with Mobile_Pinch command with 50 offset points. For the mobile locator ID, you can the value below. Your steps will look like this:

com.google.android.apps.maps:id/map_frame

image-20241113-110557.png
image-20241113-110626.png

 

This is how Google Maps app will look like before running Mobile_Pinch command (map is already zoomed in)

 

This is how Google Maps app will look like after running Mobile_Pinch command with 50 offset points (map gets zoomed out)

 

 

Related content

"MOBILE_SPREAD" Command
"MOBILE_SPREAD" Command
More like this
"MOBILE_SCROLL" Command
"MOBILE_SCROLL" Command
More like this
"MOBILE_PRESS" Command
"MOBILE_PRESS" Command
More like this
"MOBILE_TAP" Command
"MOBILE_TAP" Command
More like this
"MOBILE_DOUBLE_TAP" Command
"MOBILE_DOUBLE_TAP" Command
More like this
"MOBILE_SWIPE" Command
"MOBILE_SWIPE" Command
More like this