GXtest UI Commands - Type

Unofficial Content

TypeByID

image_2018127184320_1_png
Goal: Type text on an HTML element using the control's ID.

Parameters:

  • ID: the HTML element ID to use.
  • Text: text string to be typed

Example of use: 

&driver.TypeByID("vVAR1","hello world")

TypeByName

image_2018127183830_1_png

Goal: Type text on an HTML element using its 'name' attribute.

Parameters:

  • Name: the NAME attribute of the control to type on. 
  • Text: text string to be typed

Example of use: 

&driver.TypeByName("vVAR1", "bye bye")

TypeByCSS

image_2018127183915_1_png

Goal: Type text on an HTML element using a CSS selector.

Parameters:

  • CSS: the CSS selector to the element that you want to type on. 
  • Text: text string to be typed

Example of use: 

&driver.TypeByCSS("#vVAR1","byebye")

TypeByXPath

image_2018127183953_1_png

Goal: To type text on a ceirtain HTML element using a XPath selector.

Parameters:

  • XPath: the XPath selector to the element that wants to be typed on. 
  • Text: text string to be typed

Example of use: 

&driver.TypeByXPath("//textarea","Here I want to use a large large string...")