The Select List Item action is used to select one or more items in a list box or list view. You can select all items in the list, limit the selection to items containing a particular text string, or select according to the position of the item on the list.
Important: Only standard Windows controls will work with the Select List Item action. Many applications use images or other controls that may act like Windows controls but do not support the interfaces required to detect them. The Select List Item action will not work with these controls. In these cases other interactivity actions must be used, such as the Move Mouse and Click Mouse actions.
From the Task Builder Available Actions pane, open the Interactivity folder and double-click the Select List Item action or drag it into the Steps pane.
In the Action box, select one of the following:
Select first item with text: selects the first item on the list that contains the text entered in the Text (or index) of item to select box.
Select last item with text: selects the last item on the list that contains the text entered in the Text (or index) of item to select box.
Select all items with text: selects all items on the list that contain the text entered in the Text (or index) of item to select box.
Select all items: selects all items on the list.
Select items at index: selects the list item at the index number entered in the Text (or index) of item to select box.
If you did not choose Select all items as the action, in the Text (or index) of item to select box, enter the text to look for or the index number. Use wildcard characters asterisk (*) or question mark (?) when entering partial item text. For example *.doc would designate any or all items ending with .doc.
If possible, open the window containing the list you want to use. Then drag the AutoMate icon to the list. This will automatically populate the object description. If you cannot use the actual window containing the list, use a similar one and then edit the object description per the next step. You can also drag the AutoMate icon to the window that contains the list, and then click the Browse button and use the tree structure to find and select the object.
If you need to make changes to the auto-populated properties, click Edit and change the properties according to the following guidelines:
Select or clear the check boxes to indicate which properties are required.
Edit any required properties as desired. You can use wildcard characters asterisk (*) or question mark (?) in titles, classes, names, or values. For example *report* can be used to specify any name containing the word report.
To use a variable or expression, click within any box and then click the Insert Expression/Variable button and use the Expression Builder to enter it.
The properties are as follows:
Window title must be: the window title as shown in the title bar. The entry is case sensitive.
Window class must be: the class of window, such as Microsoft Word (OpusApp), or Adobe Acrobat (AdobeAcrobat). The drop-down list shows the classes of all currently open windows. The entry is case sensitive.
Window handle must be: a unique value that Windows assigns each time a window is created. You might use this for situations where there may be more than one copy of the same application open.
Object type must be: the type of object, which for this action will always be List.
Object class must be: the Windows class of the object.
Object name must be: the name of the object. This is usually inapplicable for this action.
Object value must be: the value of the object. This is usually inapplicable for this action.
Object position must be: the coordinates for the position of the object on the screen.
you are adding the selection to one or more selections made in previous
steps, click the Advanced tab
and select Add item to current selection.
This operates like holding down the CTRL key and clicking multiple items in a list.
To set the Description tab properties, refer to Description Tab Options.
To set the Error Causes and On Error tab properties, refer to Step Error Handling.
When finished, click OK to save settings and close the properties dialog window.
Adding Task Steps
Select List Item Action