Skip to main content

SeeTestAutomation - Click

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 click (Zone, Element, Index, ClickCount)

Description

Click an element

Parameters

  • Zone: Select Zone
  • Element: Select "Element"
  • Index: Element Order
  • Click Count: Number of Clicks

Usage

Scenario:  In the following example we will click on the"Login" button of the ExperiBank application. We will use the basic click command.

Parameters:

  • Zone: set to "NATIVE"
  • Element: set to "id=loginButton"
  • Index: set to 0
  • Click count: set to 1

  Result: Click event to the login button is sent.

Code Examples

Command is available on all supported code languages

Java Example

client.click("NATIVE", "id=loginButton", 0, 1);

C# Example Expand source

client.Click("NATIVE", "id=loginButton", 0, 1);

VBScript Example Expand source

client.Click "NATIVE", "id=loginButton", 0, 1
Report

Python Example Expand source

self.client.click("NATIVE", "id=loginButton", 0, 1)

Perl Example Expand source

 $client->click("NATIVE", "id=loginButton", 0, 1);