GXtest UI Commands - Click

Unofficial Content

ClickByID
image_201812718015_1_png

Goal: To click an HTML element using the control's ID.

Parameters:

  • ID: the HTML element ID to click. 

Example of use: 

&driver.ClickById("BTN1")

ClickByLinkText
image_201812718042_1_png

Goal: To click a link using its text.

Parameters:

  • LinkText: the link text to click. 

Example of use: 

&driver.ClickByLinkText("click here:")

ClickByName
image_20181271817_1_png

Goal: To click a certain HTML element using the its 'name' attribute.

Parameters:

  • Name: the NAME attribute of the control to click. 

Example of use: 

&driver.ClickByName("BTN2")

ClickByCSS
image_201812718140_1_png

Goal: To click an HTML element using a CSS selector.

Parameters:

  • CSS: the CSS selector to the element that you want to click. 

Example of use: 

&driver.ClickByCSS("#button1")

ClickByXPath
image_20181271829_1_png

Goal: To click an HTML element using a XPath selector.

Parameters:

  • XPath: the XPath selector to the element that wants to be clicked. 

Example of use: 

&driver.ClickByXPath("//span/input")

DoubleClickByID
image_2018127181850_1_png

Goal: To double click an HTML element using the control's ID.

Parameters:

  • ID: the HTML element ID to double click. 

Example of use: 

&driver.DoubleClickById("BTN1")

DoubleClickByName
image_201812718246_1_png

Goal: To double click an HTML element using the its 'name' attribute.

Parameters:

  • Name: the NAME attribute of the control to double click. 

Example of use: 

&driver.DoubleClickByName("vVAR1")

DoubleClickByCSS

image_2018127182616_1_png

Goal: To double click a certain HTML element using a CSS selector.

Parameters:

  • CSS: the CSS selector to the element that you want to double click. 

Example of use: 

&driver.DoubleClickByCSS("#IMAGE1")

DoubleClickByXPath
image_2018127182726_1_png

Goal: To DoubleClick a certain HTML element using a XPath selector.

Parameters:

  • XPath: the XPath selector to the element that wants to be double clicked. 

Example of use: 

&driver.DoubleClickByXPath("//span/input")