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>
Code: Select all
package
{
import mx.controls.TextInput;
public class MonTextMX extends TextInput
{
public function MonText()
{
}
}
}
Code: Select all
package
{
public class MonText extends MonTextMX
{
public function MonText()
{
}
}
}
Is there something to configure ?
Thanks,