Page 1 of 1

Recognition does not work on extended Flex components

Posted: Tue Oct 26, 2010 11:04 am
by owe
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,

Re: Recognition does not work on extended Flex components

Posted: Wed Oct 27, 2010 12:22 pm
by Support Team
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

Re: Recognition does not work on extended Flex components

Posted: Wed Oct 27, 2010 12:30 pm
by owe
Hello Michael,

Thanks for your answer.

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

Best regards,