GXtest UI Test for Web - Supported Commands

Official Content

This list of GXtest commands is designed to control test execution over the browser (on the desktop and mobile OS). This is achieved using an adaptation layer (External Object) that wraps the WebDriver protocol.

This actions to handle test automation over browsers can be grouped into 4 categories:

Driver and Browser Automation

WebDriver: Start and end test sessions (locally or remote) using Web Driver protocol. 

Browser: Handle window size, take screenshots, navigations (back, refresh, forward), etc.

Waits: To wait for specific elements to be present (or visible) on the webpage. 

Timeouts: To set timeout values (explicit, implicit and page load).

Mouse and Keyboard actions

Click: Send click and double click events for HTML elements.

Type: For text typing into different HTML controls (after clearing the current text)

Select: For choosing options on combo boxes

Keystroke: For sending keys to different HTML controls. 

Mouse Move: To move the mouse pointer to specific position. 

Edit Content: To edit content of special HTML5 controls.

Validations

Is Element Present: To check the presence of an element.

Is Element Enabled: To check if an element is enabled.

Is Element Visible: To check if an element is visible. 

Is Element Focused: To check if an element has the focus. 

Appear Text: To check if a text appears on web page. 

Text, Values and Assertions

Get Text: To get text from HTML controls

Get Value: To get values from HTML controls

Assertions: Combined commands to make validations over different text, values, browser title, or any data. 

Verify: Works like an assertion of a boolean value, but can make a web test stop its execution (default behavior)

Forms, Frames, Alerts and Windows

Windows / Tabs: To manage current windows / tabs working on.

Form Submit: To submit forms

Frames: To choose frames to work with. 

Alerts: To handle Javascript Alerts / Messages / Prompts