The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
HtmlListItem::Select Method ()
Selects the list item in the list or combobox.
Assembly: Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)
| Exception | Condition |
|---|---|
| InvalidOperationException | The list item is not part of a list or a combobox control. |
Example - Selects the list item in the list.
This is same as myList.SelectedItems = new string[] { myListItem.Name }; myListItem.Select();
Show: