DoubleSelect Method (ListBox ListView)

Class

ListBox and ListView.

Action

Double-clicks an item in a list, list box, or listview.

Availability

This functionality is supported only if you are using the Classic Agent.

Syntax

listbox.DoubleSelect (item)
Variable Description
item The item to click. LISTITEM.

Notes

DoubleSelect double-clicks an item in a list by scrolling the item into view and clicking it. For information on specifying item, see ListBox class or ListView class.

DoubleSelect is useful with lists that assign special meaning to a double-click event. For example, most File Open list boxes open the file whose name is double-clicked in the list box.

Do not attempt to record a DoubleSelect action. Due to varying machine speeds and operating systems, the timing may be such that Silk Test Classic cannot successfully record DoubleSelect. Instead, record Select, then manually change the Select statement to DoubleSelect.

DoubleSelect() does not work properly with Internet Explorer 7.

Example

// Open the File Open dialog
TextEditor.File.Open.Pick ()

// Double-click root directory in Directories list box
Open.Directories.DoubleSelect ("c:\")