Problem in recognizing the elements in Our WPF Application

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
venkatesh526
Posts: 4
Joined: Mon Aug 30, 2010 10:26 am

Problem in recognizing the elements in Our WPF Application

Post by venkatesh526 » Wed Oct 20, 2010 10:13 am

Hello Team,

We are facing some problems, actually four problems in our WPF application. I have uploaded a file which explains in detail about the each problem along with the Screen shots.Please help us in regards to this matter.
You do not have the required permissions to view the files attached to this post.

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Problem in recognizing the elements in Our WPF Application

Post by Support Team » Wed Oct 20, 2010 11:32 am

Hi,

It could be following reason why you don't get the grid inside the container during the second run:
We know about a bug in UIAutomation framework of Microsoft, that you have to click inside the container before you can automate the elements inside. Therefore please click first in the center of the container and the element should be available.
Combo-box issue:
You have first to open the combo-box, then the items with the text should be available. The text of the items will be generated if you open the combo-box.
About the issue with scrolling to an item which is not in the viewable are, please use the EnsureVisible() method or/and the Focus method, to bring the item to foreground.

Regards,
Peter
Ranorex Team

venkatesh526
Posts: 4
Joined: Mon Aug 30, 2010 10:26 am

Re: Problem in recognizing the elements in Our WPF Application

Post by venkatesh526 » Wed Oct 20, 2010 1:01 pm

But the problem with that combo box is that in our Application U.I, that particular element looks like textbox not combo box in the UI, you can check that in the screen shots.

There are two properties which were changing.
If its the first run then those property values are
1. Visible is True.
2. Is Control Element is False.

After the first run those values are
1.Visible is False.
2.Is Control Element is True.

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Problem in recognizing the elements in Our WPF Application

Post by Support Team » Thu Oct 21, 2010 10:30 am

Hi,

Please could you post us a Ranorex Snapshot of your application to take a look on the controls?
How to create a Snapshot
It is much easier for us to analyze it with this snapshot.

Regards,
Peter
Ranorex Team