Recognition does not work on extended Flex components

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
owe
Posts: 2
Joined: Tue Oct 26, 2010 10:39 am

Recognition does not work on extended Flex components

Post by owe » Tue Oct 26, 2010 11:04 am

Hi all,

I've experiment some issue with object recognition in Ranorex Spy 2.3.4.
I've a small Flex application (for the example) that uses custom Flex component (MonText) that extends component (MonTextMX) that extends the mx:TextInput of Flex 3.5.

So, in Ranorex Spy (as you can see on the attached snapshot) the mx:TextInput and the MonTextMX component are well recognized but the MonText component is not.

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<mx:Application 
	xmlns:mx="http://www.adobe.com/2006/mxml"
	xmlns:sf="http://www.bsb.com/sf/flex"
	layout="absolute"
	applicationComplete="{launchRanorex()}" xmlns:local="*">
	
	
	<mx:Script>
		<![CDATA[
			private function launchRanorex():void {
        		var rxloader : Loader = new Loader();  
				Application.application.rawChildren.addChild(rxloader);  
   				rxloader.name = "__rxloader";  
  				rxloader.width = 0; rxloader.height = 0;  
   				rxloader.load(new URLRequest("RanorexModule.swf"));  
        }
		]]>
	</mx:Script>

	<mx:VBox>
		<mx:TextInput id="login"/>
		<mx:TextInput id="password" displayAsPassword="true"/>
		<mx:ComboBox id="countryList">
			<mx:dataProvider>
				<mx:Object>Belgium</mx:Object>
				<mx:Object>France</mx:Object>
				<mx:Object>Germany</mx:Object>
			</mx:dataProvider>
		</mx:ComboBox>
		
		<mx:HBox>
			<mx:Button id="loginButton" label="Login"/>
			<mx:Button id="resetButton" label="Reset"/>
		</mx:HBox>
		
		<mx:Label text="Label test"/>
		
		<local:MonTextMX text="MX text extended"/>
		<local:MonText text="MonTextMX text extended"/>
		
	</mx:VBox>
	
</mx:Application>
MonTextMX.as

Code: Select all

package
{
	import mx.controls.TextInput;
	
	
	
	public class MonTextMX extends TextInput
	{
		public function MonText()
		{
		}

	}
}
MonText.as

Code: Select all

package
{
	
	public class MonText extends MonTextMX
	{
		public function MonText()
		{
		}

	}
}
Is it a Ranorex limitation ?
Is there something to configure ?

Thanks,
Attachments
ranorextest.rxsnp
the snapshot of ranorex spy
(56.44 KiB) Downloaded 249 times

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

Re: Recognition does not work on extended Flex components

Post by Support Team » Wed Oct 27, 2010 12:22 pm

This is currently a limitation of Ranorex. We will try and fix this (and a number of other flex/flash issues)
in the next service release (2.3.5, due November). If you are interested, I can keep you updated if there is a new Ranorex flex library to try.

Michael
Ranorex Team
.
Image

owe
Posts: 2
Joined: Tue Oct 26, 2010 10:39 am

Re: Recognition does not work on extended Flex components

Post by owe » Wed Oct 27, 2010 12:30 pm

Hello Michael,

Thanks for your answer.

Yes, I'm interested in next release.
Thanks to keep me inform.

Best regards,