Ask a Question

Getting wItemList items as list<String> in c#

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

1 ACCEPTED SOLUTION

Accepted Solutions
tphillips
Frequent 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-...

 


--------------------
Senior SQA Automation Engineer

View solution in original post

2 REPLIES 2
tphillips
Frequent 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-...

 


--------------------
Senior SQA Automation Engineer

View solution in original post

sonya_m
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. ⬇️⬇️⬇️
cancel
Showing results for 
Search instead for 
Did you mean: