Skip to main content

SeeTest Client - ElementSwipe

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 .

ElementSwipe (Zone, Element, Index, Direction, Offset, Time)

Description

Swipe the screen in a given direction. The command will only perform the swipe within a given container.

Parameters

  • Zone: Select Zone
  • Element: Select Element
  • Index: Element index
  • Direction: Direction to swipe
  • Offset: Swipe offset
  • Time: Swipe overall time (milliseconds)

Usage

Command usage:  Equivalent command to the swipe command. This command will swipe inside a container and not the entire screen.

Scenario:

We will use the Amazon application to swipe the menu down.

Note that the menu does not hold on the entire screen so on different devices, we may get different behavior.

Parameters**:**

  • Zone: will be set to "NATIVE"
  • Element: will be set to "id=browse_menu"
  • Index: will be set to "0"
  • Direction: will be set to "DOWN"
  • Offset: will be set to "500"
  • Time: will be set to "1000"

Code Examples

Java Example

client.elementSwipe("NATIVE", "id=browse_menu", 0, "Down", 500, 1000);

C# Example Expand source

client.ElementSwipe("NATIVE", "id=browse_menu", 0, "Down", 500, 1000);

VBScript Example Expand source

client.ElementSwipe "NATIVE", "id=browse_menu", 0, "Down", 500, 1000
Report

Python Example Expand source

self.client.elementSwipe("NATIVE", "id=browse_menu", 0, "Down", 500, 1000)

Perl Example Expand source

$client->elementSwipe("NATIVE", "id=browse_menu", 0, "Down", 500, 1000);