How to identify System.Windows.Shapes.Rectangle in Ranorex?

Ask general questions here.
Magen
Posts: 1
Joined: Tue Mar 20, 2012 2:56 pm

How to identify System.Windows.Shapes.Rectangle in Ranorex?

Post by Magen » Thu Apr 12, 2012 8:14 pm

I have a Silverlight application, on this application page, there are some entities are type of System.Windows.Shapes.Rectangle, the Ranorex Spy doesn't recognize them, how do I handle them in Ranorex?
Last edited by Magen on Fri Apr 13, 2012 3:17 pm, edited 1 time in total.

User avatar
Aracknid
Posts: 342
Joined: Tue Aug 10, 2010 3:23 pm
Location: Toronto, Ontario, Canada

Spy cannot see Windows.Shapes in Silverlight?

Post by Aracknid » Thu Apr 12, 2012 8:16 pm

Hi,

I have a silverlight object and within it there is a System.Windows.Shapes.Rectangle object. The object has a color and the color is used to identify a status (green = good, red = bad).

When I spy on this silverlight object, I can see all the standard objects (text, combo box, buttons, etc..) but these shapes don't appear in the spy tool.

Wondering if there is something that I can do to get them to be detected?

Thanks,

Aracknid

User avatar
Aracknid
Posts: 342
Joined: Tue Aug 10, 2010 3:23 pm
Location: Toronto, Ontario, Canada

Re: How to identify System.Windows.Shapes.Rectangle in Ranorex?

Post by Aracknid » Mon Apr 16, 2012 2:40 pm

Sorry for the duplicate post (we work together and miscommunicated who was going to ask the question).

Still looking for an answer. Thanks.

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: How to identify System.Windows.Shapes.Rectangle in Ranorex?

Post by Support Team » Mon Apr 16, 2012 3:59 pm

Hi,
Aracknid wrote:I have a silverlight object and within it there is a System.Windows.Shapes.Rectangle object. The object has a color and the color is used to identify a status (green = good, red = bad).
Ranorex uses the UIA Framework of Microsoft and this framework doesn't have the ability to access shapes out of the box, because the are no interactive elements. Attached you will find a file how your developers can implement the accessibility for your shapes.
ShapeAutomationPeerExtender.cs
(3.9 KiB) Downloaded 183 times
Regards,
Peter
Ranorex Team
.
Image