Skip to main content

SeeTestAutomation - Touch Commands

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 .

info

Touch commands supported in iOS only in instrumented Native zone, Android supports all zones

TouchDown

void touchDown(Zone, Element, index)

Description

Touch down on element.

Parameters

TouchMove

void touchDown(Zone, Element, index)

Description

Touch move to element, this command should come after touchDown or touchDownCoordinate commands.

Parameters

TouchUp

void touchUp()

Description

Touch Up from last element/coordinate touched down or moved to.

Usage

Touch down a text field to get iOS magnifying Glass bubble, then touch move with the bubble to a button and then touch up.

              

         

Code Examples:

Java Example

client.touchDown("NATIVE", "xpath=//*[@accessibilityLabel='Username']", 0);
client.touchMove("NATIVE", "xpath=//*[@text='Login']", 0);
client.touchUp();

C# Example Expand source

client.TouchDown("NATIVE", "xpath=//*[@accessibilityLabel='Username']", 0);
client.TouchMove("NATIVE", "xpath=//*[@text='Login']", 0);
client.TouchUp();

VBScript Example Expand source

client.TouchDown("NATIVE", "xpath=//*[@accessibilityLabel='Username']", 0)
client.TouchMove("NATIVE", "xpath=//*[@text='Login']", 0)
client.TouchUp()

Python Example Expand source

self.client.touchDown("NATIVE", "xpath=//*[@accessibilityLabel='Username']", 0)
self.client.touchMove("NATIVE", "xpath=//*[@text='Login']", 0)
self.client.touchUp()

Perl Example Expand source

$client->touchDown("NATIVE", "xpath=//*[\@accessibilityLabel='Username']", 0);
$client->touchMove("NATIVE", "xpath=//*[\@text='Login']", 0);
$client->touchUp();