Tap

class Tap

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:

Tap

GetName()

Returns the name of the touch input action

Returns:

The name of the touch input action

Return type:

str

GetPosX()

Returns value of the first coordinate.

Returns:

Value of x-coordinate

Return type:

str

GetPosXUnit()

Returns unit of the first coordinate.

Returns:

Unit of x-coordinate

Return type:

str

GetPosY()

Returns value of the second coordinate.

Returns:

Value of y-coordinate

Return type:

str

GetPosYUnit()

Returns unit of the second coordinate.

Returns:

Unit of y-coordinate

Return type:

str

SetPosX(expr, unit='px')

Sets first coordinate of position.

Parameters:
expr : str

expression for x-coordinate of position

unit : str

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

SetPosY(expr, unit='px')

Sets second coordinate of position.

Parameters:
expr : str

expression for y-coordinate of position

unit : str

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