Step syntax

Write your steps in plain English, using the syntaxes described below (the words the and that are optional).

You can use single quotes or double quotes to enclose a string. The string can also contain quotes, but these quotes must be a different type than the quotes enclosing the string.

Command Description

Click / Press / Tap

Perform a Click / Press / Tap operation on the control itself.

Syntax: Click/press/tap the <control type>

Example: Click the bell

Perform a Click / Press / Tap operation on a control with a name.

Syntax: Click/press/tap the "<text for identification>" button/text

Example: Click the "SIGN IN" button

Note: Text related to a class may be marked together in the user interface. This example is displayed as . Press the Backspace key twice to delete the text and class together.

Navigate

In the browser, go to a specified website.

Syntax: Navigate to <URL>

Example: Navigate to https://www.google.com/

Go back

Go back to the previous page.

Syntax: Go back

Type

Type the specified string into a text control.

Syntax: Type "<text to type>" into "<text for identification>" input/field

Note: You can also replace the word into with in or inside.

Example: Type "Boy's shirt" into "USER NAME" input

Search

Search for the specified text.

Syntax: Search for "<text to find>"

Example: Search for "Wikipedia"

Set

Assign a constant value to an output parameter.

Syntax: Set "value" into @<output parameter name>

Example: Set 1 into @Outpara1

Assign the value of an input parameter to an output parameter.

Syntax: Set @<input parameter name> into @<output parameter name>

Example: Set @Inputpara1 into @Outputpara1

Assign the value of an AI object to an output parameter.

Syntax:

  • Set value of '<text for identification>' <control type> into @<output parameter name>

  • Set "<text for identification>" <control type> value into @<output parameter name>

Example:

  • Set value of 'Username' input into @Outpara1

  • Set "Username" input value into @Outpara1

Verify

Verify that a control exists or does not exist.

Syntax:

  • Verify that the '<text for identification>' <control type> exists

  • Verify that the '<text for identification>' <control type> does not exist

Example:

  • Verify that the 'urgent' alarm exists

  • Verify the 'INPUT' button does not exist

Verify that the value of a control is, contains, or is within a certain string.

Syntax:

  • Verify that the value of "<text for identification>" <control type> is <value>

  • Verify that the value of "<text for identification>" <control type> contains <value>

  • Verify that the value of "<text for identification>" <control type> within <value>

Example:

  • Verify that the value of "Username" input is "John"

  • Verify that the value of "Username" input contains "John"

  • Verify that the value of "Text" within "Good Morning John"

Note: You can verify string values of objects. The value can be an input parameter or a constant.

Wait

Instruct a script to wait for a few seconds.

Syntax: Wait <seconds>

Example: Wait 6 seconds

If / Else

Use a condition to specify the steps that run when a control exists or does not exist.

Syntax:

If the '<text for identification>' <control type> exists
    <steps>
Else
    <steps>
If the '<text for identification>' <control type> does not exist
    <steps>
Else
    <steps>

Example: 

If the menu exists
       Click the menu
Else
      Click the 'Close' button

If the menu does not exist
      Click the 'Close' button
Else
      Click the menu

Note: The Else statement is optional.

Back to top

See also: