Rx 3.0.1: Element will not be recognized as Control

Ask general questions here.
Posts: 20
Joined: Wed May 26, 2010 8:53 am

Rx 3.0.1: Element will not be recognized as Control

Post by JayDee » Fri Apr 15, 2011 1:20 pm


currently we are testing on both variants, rx 2.3.9 and 3.0.1 and we have some cases where Ranorex 3.0.1 is not able to cast an element to control. May its a special problem of an UltraExplorerBar InfracisticsControl, we actually don't know...

We made two images:

The first one is taken from our ms studio and debugged with ranorex 2.3.9. As you can see value and type are named as "Ranorex.Core.Element" and the cast was successfull (control is not null and reachable through ranorex).

The second one is debugged while ranorex 3.0.1 was running. The type of our element is still Ranorex.Core.Element but the value is "Unknown:UltraExplorerBar". The cast in this case is not successfull, control is null.

In Ranorex 3.0.1 we've already changed the "Filtering compatibility level" in Spy from V3X to V2X with no effect.

Any ideas? :)

Best Regards! JayDee
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

Re: Rx 3.0.1: Element will not be recognized as Control

Post by Support Team » Fri Apr 15, 2011 1:37 pm

Do you have a Ranorex 2.X and Ranorex 3.X installed on that machine?
Do you have the .NET Framework 4.0 installed on the machine?

If so, this is a known problem that will be fixed with Ranorex 3.0.2. Please, try to uninstall Ranorex 2.X from the machine and try again, thanks!
(It should be safe to install Ranorex 2.X afterwards again without problems. The problem only exists if you install Ranorex 3.X after 2.X, have .NET 4.0 installed and try to automate Windows Forms 2.0 controls.)

Ranorex Team