Forum Discussion
Try something like this.
propNames = new Array ("text","Enabled");
It's not working, it's not like JScript/C# Script or something like that.
'Array' in C# is an abstract class
- Ivg9 years agoOccasional Contributor
'PropNames' and 'PropValues' should be of 'var' type.
When I'm looking at the TestComplete's 'var' type declaration, I can see the supported types 'var' can get in his c'tor.
There aren't any arrays there.
Is it impossible to use multiple names & values when writing connected app in C#?
- Colin_McCrae9 years agoCommunity Hero
I use multi-part searches in C# Script.
var typeARR = Array("VCLClass", "Caption");
var valueARR = Array("class_name", "caption_text");
var do_search = panel_object["FindAllChildren"](typeARR, valueARR, 3, true);
Works fine for me.
Not embedded within a C# application though. Just run as a scripted test within TestComplete. Not sure about it if it's embedded in the application ...
- AlexKaras9 years agoChampion Level 3
Hi Colin,
Yes, this will work for C#Script from TestComplete, but not for pure C# from the Connected Application. And this is what was requested in the initial thread message.
Ivg, if no solution was found yet, I would recommend to ask Support directly via the http://support.smartbear.com/message/?prod=TestComplete form.
Related Content
- 12 years ago
Recent Discussions
- 15 hours ago