Pinch

class Pinch

Returned by

Clone()

Call this method if you want to use API-objects in multiple contexts, e.g. if you want to insert a specific test step in multiple blocks.

Returns:

A copy of this object

Return type:

Pinch

GetInputParameterType()

Returns the type of the touch input action parameters.

Returns:

The type of the touch input action parameters (‘Coordinates’ or ‘Prompt’)

Return type:

str

GetName()

Returns the name of the touch input action

Returns:

The name of the touch input action

Return type:

str

GetPinchDuration()

Returns the value of the pinch duration.

Returns:

Value of pinch duration

Return type:

str

GetPinchDurationUnit()

Returns the unit of the pinch duration.

Returns:

Unit of pinch duration

Return type:

str

GetPos1X()

Returns the value of the first coordinate of first finger.

Returns:

Value of first finger’s x-coordinate

Return type:

str

GetPos1XUnit()

Returns the unit of the first coordinate of first finger.

Returns:

Unit of first finger’s x-coordinate

Return type:

str

GetPos1Y()

Returns the value of the seconed coordinate of first finger.

Returns:

Value of first finger’s y-coordinate

Return type:

str

GetPos1YUnit()

Returns the unit of the seconed coordinate of first finger.

Returns:

Unit of first finger’s y-coordinate

Return type:

str

GetPos2X()

Returns the value of the first coordinate of second finger.

Returns:

Value of second finger’s x-coordinate

Return type:

str

GetPos2XUnit()

Returns the unit of the first coordinate of second finger.

Returns:

Unit of second finger’s x-coordinate

Return type:

str

GetPos2Y()

Returns the value of the second coordinate of second finger.

Returns:

Value of second finger’s y-coordinate

Return type:

str

GetPos2YUnit()

Returns the unit of the second coordinate of second finger.

Returns:

Unit of second finger’s y-coordinate

Return type:

str

GetPrompt()

Returns the prompt expression for the touch input action.

Returns:

The prompt expression for the touch input action

Return type:

str

GetScaleFactor()

Returns the scaling factor of gesture.

Returns:

Scale factor

Return type:

str

SetInputParameterType(parameterType)

Sets the type of the touch input action parameters.

Parameters:
parameterType : str

The type of the touch input action parameters (‘Coordinates’ or ‘Prompt’)

SetPinchDuration(expr, unit='s')

Sets the pinch duration.

Parameters:
expr : str

Pinch duration

unit : str

unit of duration, milliseconds ‘ms’ or seconds ‘s’

SetPos1X(expr, unit='px')

Sets first coordinate of first finger.

Parameters:
expr : str

x-coordinate of first finger as expression or numeric value

unit : str

unit of x-coordinate, absolute ‘px’ or relative ‘%’

SetPos1Y(expr, unit='px')

Sets second coordinate of first finger.

Parameters:
expr : str

y-coordinate of first finger as expression string or numeric value

unit : str

unit of y-coordinate, absolute ‘px’ or relative ‘%’

SetPos2X(expr, unit='px')

Sets first coordinate of second finger.

Parameters:
expr : str

x-coordinate of second finger as expression or numeric value

unit : str

unit of x-coordinate, absolute ‘px’ or relative ‘%’

SetPos2Y(expr, unit='px')

Sets second coordinate of second finger.

Parameters:
expr : str

y-coordinate of second finger as expression string or numeric value

unit : str

unit of y-coordinate, absolute ‘px’ or relative ‘%’

SetPrompt(prompt)

Sets the prompt expression for the touch input action.

Parameters:
prompt : str

The prompt expression for the touch input action

SetScaleFactor(expr)

Sets the scaling factor of gesture

Parameters:
expr : str

Scaling factor