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.
WinListItem::Select Method ()
Selects the list item in the list or combo box.
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 combo box control. |
Example: Selects the list item in the list.
This is same as myList.SelectedItems = new string[] { myListItem.Name }; myListItem.Select();
Show: