Synthetic Classic has reached end of support and is no longer available. Existing Synthetic Classic customers have been upgraded to the all-in-one Dynatrace software intelligence platform.

Select script action

Select action

The Select action describes the use of drop-down lists in a script.

The action is defined by the following settings.
Select settings

  • Option Indexes – The position of the selected item in the drop-down list. The index of the first option in the list is 0 (zero).

  • Text Values – The text of the selected item. You can use evaluation syntax in defining the text value.

  • Suppress firing default events – When you select this option, the events that are normally triggered by the selected list items do not occur.

  • Target Window – The window where the click occurs.

  • Locators – The elements to be clicked.

The Option Indexes field and Text Values field are used in different ways when the script is run. First, the script will try to find an option in the select box that contains the text in the Text Values field. If an option matching that criterion cannot be found, the script reverts to the specified option index. The Text Values field must be populated. If you want the script to always use the Option Indexes value, enter an arbitrary string in the Text Values field; when that string is not found, the script will use the specified position in the Option Indexes field.

Change the list selection

  1. Change the value in the Option Indexes field to index for each item to be selected.

  2. Change the value in the Text Values field to the text of the items to be selected.

You can specify multiple selection items by entering values separated by commas. For example, to select the second and fourth list items, enter 1,3 as the option indexes.

Suppress default events

  1. Select Suppress firing default events.

Change the target window setting

  1. Change the value in the Target Window field.

Define locators

Add a locator

  1. Click on the right side of the Locators area. A new row is added.
    Add a locators row

  2. Select CSS or DOM from the drop-down list.

  3. Enter the new Locator information.

Change existing locator settings

  1. Scroll down to the Locator to change.

  2. If necessary, change the selection — CSS or DOM — in the drop-down list.

  3. Enter the new Locator information in the text field.

Delete a locator

  1. Click to the right of the Locator to delete.