Hold

class Hold

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:

Hold

GetHoldDuration()

Returns the value of the hold duration.

Returns:

Value of hold duration

Return type:

str

GetHoldDurationUnit()

Returns the unit of the hold duration.

Returns:

Unit of hold duration

Return type:

str

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

SetHoldDuration(expr, unit='s')

Sets the hold duration.

Parameters:
expr : str

Hold duration

unit : str

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

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 ‘%’