pinch

Description

Simulate the placing of two fingers on the device surface, followed by the fingers approaching each other (pinch in) or diverging (pinch out).

Arguments

type

     Type of pinch.

     Allowable values:

     close

           Perform a pinch-in gesture.

     open

           Perform a pinch-out gesture.

window

      TA name of the window.

x1

      Horizontal position of starting point of finger 1 (both gesture types) and finger 2 (pinch-out gesture) (units: pixels1, relative to left edge of window).

y1

      Vertical position of starting point of finger 1 (both gesture types) and finger 2 (pinch-out gesture) (units: pixels1, relative to left edge of window).

x2

      Horizontal position of finger 2’s starting point for a pinch-in and ending point for a pinch-out (units: pixels1, relative to left edge of window).

y2

      Vertical position of finger 2’s starting point for a pinch-in and ending point for a pinch-out (units: pixels1, relative to top edge of window).

duration

      (Optional) Length of time allocated to the gesture (units: milliseconds).

Valid contexts

This action may be used within the following project items: test modules and user-defined actions.

Applicable Systems/Platforms

Use of this action is supported on the following systems/platforms: Mobile operating systems.

Notes

Applicable Built-In Settings

The following settings are applicable to this action: case sensitive, remove double quotes from cells, standard ASCII only, window wait.

Applicable Controls

This action is applicable to the following controls: activity indicator view, button, collection view, collection view cell, date picker, image, label, map view, navigation bar, page control, picker view, progress bar, scroll view, search bar, segmented control, slider, stepper, switch, tab bar, table view, table view cell, text view, text box, toolbar, view, web view, window.

Example

In the application, pinch the tomato and papaya towards each other.

Action Lines

1 In the case of iOS device testing, screen units are points. (See Notes.)


Copyright © 2024 LogiGear Corporation. All rights reserved. LogiGear is a registered trademark, and Action Based Testing and TestArchitect are trademarks of LogiGear Corporation. All other trademarks contained herein are the property of their respective owners.

LogiGear Corporation

1730 S. Amphlett Blvd. Suite 200, San Mateo, CA 94402

Tel: +1 (650) 572-1400