Swipe

class Swipe

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:

Swipe

GetEndX()

Returns the value of the first coordinate of the final position.

Returns:

Value of x-coordinate

Return type:

str

GetEndXUnit()

Returns the unit of the first coordinate of the final position.

Returns:

Unit of x-coordinate

Return type:

str

GetEndY()

Returns the value of the second coordinate of the final position.

Returns:

Value of y-coordinate

Return type:

str

GetEndYUnit()

Returns the unit of the second coordinate of the final position.

Returns:

Unit of y-coordinate

Return type:

str

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

GetPrompt()

Returns the prompt expression for the touch input action.

Returns:

The prompt expression for the touch input action

Return type:

str

GetStartX()

Returns the value of the first coordinate of the starting position.

Returns:

Value of x-coordinate

Return type:

str

GetStartXUnit()

Returns the unit of the first coordinate of the starting position.

Returns:

Unit of x-coordinate

Return type:

str

GetStartY()

Returns the value of the second coordinate of the starting position.

Returns:

Value of y-coordinate

Return type:

str

GetStartYUnit()

Returns the unit of the second coordinate of the starting position.

Returns:

Unit of y-coordinate

Return type:

str

GetSwipeDuration()

Returns the value of the swipe duration.

Returns:

Swipe duration

Return type:

str

GetSwipeDurationUnit()

Returns the unit of the swipe duration.

Returns:

Swipe duration

Return type:

str

SetEndX(expr, unit='px')

Sets first coordinate of the final position.

Parameters:
expr : str

expression for x-coordinate of position

unit : str

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

SetEndY(expr, unit='px')

Sets second coordinate of the final position.

Parameters:
expr : str

expression for y-coordinate of position

unit : str

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

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

SetPrompt(prompt)

Sets the prompt expression for the touch input action.

Parameters:
prompt : str

The prompt expression for the touch input action

SetStartX(expr, unit='px')

Sets first coordinate of the starting position.

Parameters:
expr : str

expression for x-coordinate of position

unit : str

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

SetStartY(expr, unit='px')

Sets second coordinate of the starting position.

Parameters:
expr : str

expression for y-coordinate of position

unit : str

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

SetSwipeDuration(expr, unit='s')

Sets the swipe duration.

Parameters:
expr : str

Swipe duration

unit : str

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