Click here to Skip to main content
15,888,351 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi,

I am using Microsoft UI Automation API.

AT the time of development we have .Net 4.5 Framework installed in our machine and everything was working fine.

Now we are testing the same test method in framework 4.0 but we cannot get the children which are Text type.


Pane [Parent Node]
Image
Text
Text
Button

In 4.5 we are able to traverse every child but in 4.0 only Image and Button is getting traverse.
Any help is appreciated.Thanks!
Posted
Updated 21-Jul-15 3:24am
v2
Comments
Sergey Alexandrovich Kryukov 21-Jul-15 9:44am    
"We cannot get..." is not informative. What have you tried so far?
—SA
vickyanand25005 23-Jul-15 2:07am    
The control which I am trying to automate is WPF control and hosted in winform application.It has an Image,2 Labels and one button.
Sergey Alexandrovich Kryukov 23-Jul-15 12:48pm    
To get help, you should better create some possibly smallest code sample revealing your problem and post it.
—SA
vickyanand25005 21-Jul-15 23:26pm    
We are doing automation of WPF component which is hosted as element host in Winform.
When we started our automation we have 4.5 installed in our system and we have successfully automated that control.

After removing 4.5 and we have installed 4.0 the same control is not getting its child.

For example -

There is Pane and inside Pane we have four control - Image, Text, Text, Button
So in 4.5 Framework we are able to locate the Text child of this pane.
But after removing 4.5 only Image and Button are getting traversed.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900