lio_r
5 years agoFrequent Visitor
Getting wItemList items as list<String> in c#
Hi,
I'm using TestComplete in my C# code in Visual Studio.
I'm trying to get all the elements from "wItemList" property of the element without any luck, any I didn't find any information about it.
Hope you can help me with the correct syntax.
How do I get the list from: Element["wItemList"]();
Thanks.
What are you using for your UI? WPF?
You should be able to use Element.wItemList, assuming Element is something that is a list view.
You can also access the object's internal WPF methods/properties, if TestComplete is set up for it:
https://docs.microsoft.com/en-us/dotnet/api/system.windows.controls.itemscontrol.items?view=netcore-3.1#System_Windows_Controls_ItemsControl_Items