Skip to main content

SeeTestAutomation- Flick

info

Please note that this tool is classified as a Legacy tool. We recommend transitioning to our updated solutions to maintain optimal performance and security in your workflows. For more information on this matter, please reach out to technical support .

void flick(Direction, Offset)

Description

Flick the screen in a given direction.

Parameters

  • Direction: Direction of the Flicking motion
  • Offset: flick offset (in pixels).

Usage

In order to flick the screen you can add the command 'flick', provide the direction and offset.

As a visible aid, an arrow will be drawn on the reflection showing the flick motion.

It will start according the swipe value and will point the opposite of the swipe direction.

For example, for the Right direction, the swipe arrow will point to the Left.

Scenario: In the following example, we will flick to the screen to the right in order to get to an application. 

Parameters:

  • Direction: Direction to flick – will be set to RIGHT
  • Offset: Flick offset – will be set to 100

Code Examples

Java Example

client.flick("Right", 100);

C# Example Expand source

client.Flick("Right", 100);

VBScript Example Expand source

client.Flick "Right", 100

Python Example Expand source

self.client.flick("Right", 100)

Perl Example Expand source

$client->flick("Right", 100);