Rotate

class Rotate

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:

Rotate

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

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

GetRotationAngle()

Returns the value of the rotation angle.

Returns:

Value of rotation angle

Return type:

str

GetRotationAngleUnit()

Returns the unit of the rotation angle.

Returns:

Unit of rotation angle

Return type:

str

GetRotationDuration()

Returns the value of the rotation duration.

Returns:

Value of rotation duration

Return type:

str

GetRotationDurationUnit()

Returns the unit of the rotation duration.

Returns:

Unit of rotation duration

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’)

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

SetRotationAngle(expr, unit='deg')

Sets the rotation angle.

Parameters:
expr : str

Rotation angle

unit : str

unit of angle, degree ‘deg’ or radiant ‘rad’

SetRotationDuration(expr, unit='s')

Sets the rotation duration.

Parameters:
expr : str

Rotation duration

unit : str

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