cancel
Showing results for 
Search instead for 
Did you mean: 

Getting wItemList items as list<String> in c#

Highlighted
Frequent 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.

2 REPLIES 2
Highlighted
Contributor

Re: Getting wItemList items as list<String> in c#

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-...

 


--------------------
QA Systems Architect
Integrated Control Technology
https://www.ict.co/
Highlighted
Community Manager

Re: Getting wItemList items as list<String> in c#

Thanks a lot for your advice tphillips!

 

@lio_r does this help? 


Sonya Mihaljova
Community and Education Specialist

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors