Actions in the Workbench

Select various Actions in the Workbench based upon the object and control type selected. Actions are allowed on HTML, . NET and Java Swing/AWT controls.

Actions allowed on HTML controls

The following Actions are allowed on HTML Controls:

  • Click
  • DoubleClick
  • RightClick
  • SetText
  • AppendText
  • GetProperty
  • GetVisibility
  • GetTotalItems
  • GetSelectedIndex
  • GetSelectedText
  • SelectItembyText
  • SelectItembyIndex
  • GetChildrenName
  • GetChildrenValue

Get Text, SetText and AppendText

GetText, SetText and AppendText actions are available when the selected object types are Text/Text Box, Password, Windows Control , or Custom Objects.

The properties and relevant actions in the Logic are controlled by the Object properties configuration set for the selected Screen.

GetProperty

Use the GetProperty action when you want to search the objects based on their properties during play time.

When you select action as GetProperty, you will be able to select properties names such as Object ID, Name, Value, Class, Type, Index, Description, State, IsVisible, IsProtected etc based on the object control selected.

Tip: Use the IsVisible property to identify whether a specific object is visible or not. For custom objects, you can achieve this by using the GetVisibility action; refer the next section.

Get Visibility

Use the GetVisibility action to build a logic based on an object's visibility during play time. This screen area could be a custom object or an object with Play Type Image. The GetVisibility action returns the visibility status as True or False.

To add a GetVisibility action in the Logic Editor, the object should be configured for Play Type Image.

Tip: GetVisibility can be combined with conditional commands such as If.

Actions allowed on Window Controls

The following Actions are allowed on Window Controls:

  • Click
  • DoubleClick
  • RightClick
  • LeftClick
  • SetText
  • AppendText
  • GetProperty
  • GetChildrenName
  • GetChildrenValue

SetText for Window Control: Use the action type 'SetText' for Window Controls. Select the entire window and specify the action type.

Note: The Window Control for Play Type 'Object' uses keystrokes by default.

OCR screens

For screens that are captured using OCR technology, when you select play type as Image for custom objects, you are allowed actions - SetText, GetText, LeftClick, RightClick, DoubleClick, and GetVisibility.

GetText: When you select GetText for play type Image for a custom object, you can choose an OCR engine to extract text while creating a MetaBot Logic. You can choose an OCR engine other than the one selected during screen configuration for optimizing your automation.
Note: ABBYY is the default OCR engine for Enterprise Client Version 11.3.2.