To open the Step Editor, click the open/close icon.
The sections and data you can edit depend on the type of step.
Menu bar interface elements
|Drag Step. Arrange the order of your script by dragging the step to a different location.|
|Expand Step. Displays the individual components of a step which includes step, argument and object.|
|Script levels selector. View and modify the script level of a step. For more information, see Modify and view script and step levels.|
|Replay. Replay this step only.|
|Disable/Enable Step. Temporarily remove steps from the script without deleting them. Steps that are disabled are not replayed.|
|Optional Step. In the event that the step can not find its object, the script continues without returning an error.|
|Alternative Steps. This icon indicates a step which can be redefined in alternative ways. To redefine the step, click the icon, select the desired step definition, and click Back. For more information, see Use alternative steps.|
The action that defines the step. The list of relevant actions is determined by the object roles.
If the object does not appear before this time in seconds, the step returns an error.
If the End Event is not reached by this time in seconds, the step returns an error. The way the script behaves when such an error occurs can be configured in the
The least time, in seconds, that the execution of the step will take. The value of this field can be either 0, “as recorded” or another manually set number.
The step execution will end immediately after the step’s end event if minimum time is = 0.
A minimum time value greater than 0 forces TruClient to wait the additional time (if not elapsed already) from the step's end event before moving on to the next step.
TruClient records and stores the time that elapsed between recorded actions and allows you to set the minimum time to “as recorded”.
TruClient defines when the End Event occurs during the first script replay on each supported browser.
An End Event can be one of the following:
For details, see Synchronize Script Steps
Step arguments are different for different step actions and roles.
Where applicable, you can use the argument dropdown to choose how the value of the argument is evaluated. Common options are:
- plain values (using the plain text editor ). These are primitive types: text, number, Boolean and so on.
- the name of a parameter (using the parameter editor ). The current value of the parameter is used. See Use Parameters to Vary Arguments.
For a list of the step arguments, see TruClient Step Arguments.
|Highlight. Checks if an object is visible in the application at any time.
For details, see Highlighting an object.
Replace. Replaces the current object with a different object without replacing the step. For details, see Replace an object.
|Roles||The functions that TruClient understands about an object. This information is read-only and is updated dynamically depending on how the object is used during recording. The list of available step actions is defined by these roles.|
|Name||A logical name for the object. This does not affect replay and can be modified to enhance readability.|
|ID Method||The method of identifying the object.
|Related Objects||Tool to enable TruClient to identify a target object in relation to an anchor object. For details, see Object Identification.|
TruClient generates two possible XPaths, one based upon the object's property and the other based upon the object's DOM structure. Click the arrow next to the XPath edit box to select a suggested XPath for the object. You can manually modify the suggested XPath. To revert to one of the original expressions generated by TruClient, select one of the options from the dropdown again.
You can also click the Regenerate expression button and select an object. TruClient generates a new set of suggestions based on the selected object.
If TruClient can generate a suggested XPath for the object, that XPath is entered as the argument in an evalXPath function in the JavaScipt field. The evalXPath function returns an array of the objects defined by the XPath in the argument.
document.getElementById("SearchButton") returns an element that has a DOM ID attribute of "SearchButton".
There is also a TruClient random function that returns a random item from an array. For example:
Allows you to create, modify, and view transactions. For more information, see Insert Transactions.