MultiSelect Method (DomListBox)

Class

DomListBox.

Action

Selects an item in the multi- or extend-selection list box.

Syntax

listbox.MultiSelect (items)
Variable Description
items The item to select. LIST OF LISTITEM.

Notes

If the item is not selected, MultiSelect selects the item by scrolling it into view and clicking it with the mouse. If the item is already selected, MultiSelect does nothing.

After calling MultiSelect, Silk Test Classic checks whether the item was selected, and raises the exception E_CONTROL_NOT_RESPONDING if it was not.

You cannot use this method with single-selection lists.

Example

WINDOW MultiSelectListBox = page.Find(".//select[@name='colors']")
MultiSelectListBox.MultiSelect({"Blue", "Yellow"})