• If an HtmlList has multiple items with the same name, you cannot select both the identical items.

e.g:- this.UIMap.UIHomePageWindowsInterWindow.UIHomePageDocument.UICtl00MainContentListList.SelectedItems = new string[]{"Washington","Washington"};

In the above code snippet, two identical list items are being selected.

image

When the above code snippet is played back, there will be no selected items in the list.

 

Currently this scenario is not supported in Coded UI Test. Let me know if this scenario is applicable for your application and we can consider fixing it.