Forum Discussion
Hello Enrique,
The behavior you describe is unexpected for TestComplete. And it is not just the missing double quotes, but also the parameter you pass to the FindChild method.
The FindChild method takes two obligatory parameters - the array of property names and the array of specified properties' values (please see the description of the FindChild method in our Help system), while you pass only one parameter to the method. It is very strange that the FindChild method does not throw any errors and returns you a correct object.
I have tried to reproduce the described behavior and failed. Could you please send us your project (or a sample project that demonstrates the problem) so that we could investigate this behavior?
Thanks in advance.
By the way, if your object is a direct child of the Sys.Process("myProcess").WPFObject("HwndSource: Login", "MASTER") object, you do not need the FindChild method to access it. You can just refer to the object by its name. For example:
var obj = Sys.Process("myProcess").WPFObject("HwndSource: Login", "MASTER").WPFObject("Login", Log On to myApp", 1);
You can find more information on this in the "Addressing Objects in WPF Applications" Help topic.
If you have any additional questions or need anymore assistance, please do not hesitate to contact us via Contact Support Form or via this forum.
Thank you.
Related Content
- 10 months ago
- 10 years ago
- 10 months ago
- 15 years ago
Recent Discussions
- 2 days ago
- 2 days ago
- 5 days ago