We have now extended automation support for Spark compnonents as well (if your wondering what are spark components, there are the components that are prefixed with <s: like for example if u just create a project using sdk 4 you flex application will be a spark application i.e it will be <s:Application instead of <mx:Application the latter is called halo components).Previously automation support was only provided for halo components .As this feautre is still in progress we have only provided automation support for certain spark components.
List of Spark Components made automation ready for Beta 2
- Application
- Button
- CheckBox
- Panel
- Radio Button
- ScrollBar
- TextArea
- Text Input
- VGroup
- HGroup
- RichEditableText
- Slider
- NumericStepper
Also we will need to specify that Automation of these Spark Components is currently supported only for Flex applications.
Users interested in trying this new feature will need to include flash_builder_root\sdks\4.0.0\frameworks\libs\automation\automation_spark.swc along with the other automation swcs in the additional compiler arguments.
[…] Flex Automation support for Spark Components in Flash Builder beta2 « Flex Automation shanazvakil.wordpress.com/2009/10/05/flex-automation-support-for-spark-components-in-flash-builder-beta2 – view page – cached We have now extended automation support for Spark compnonents as well (if your wondering what are spark components, there are the components that are prefixed with — From the page […]
Great feature!
I was looking for this functionality eagerly as the author of the issue http://bugs.adobe.com/jira/browse/FLEXENT-1033 “Make Spark components automation ready”
Yes This has been the most voted on automation enhancement :).Please try it out and let us know if you find any bugs .
[…] Flex Automation support for Spark Components in Flash Builder … […]
Shanaz,
FYI, I have added support for these Spark components in RIATest and so far the automation seems to be working fine.
Hope to see automation delegates implemented for the rest of Spark components soon! 🙂
Great to hear that Tigran! Keep your eyes out for the rest of the spark delegates 🙂
Hi,
When I try recording for TextInput (SDK 4.0; spark TextInput) using my custom recording agent, just double-clicking on the TextInput gives me the following error message :
Error: Unable to find automation method ‘mx.automation.events.TextSelectionEvent’ for class ‘name: FlexObject
superClassName: FlexDisplayObject
event2descriptor: (Object)#0
Here is my compiler options:
-include-libraries “C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\libs\automation\automation.swc” “C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\libs\automation\automation_agent.swc” “C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\libs\automation\automation_spark.swc”
As you can see, I have included automation_spark.swc. How can I overcome this error?
Thanks,
Pradeep.
Hi I think the teaFlex.xml file that you are using is not the latest as we have added a lot fo entries for the spark components.I have sent the latest teaFlex.xml to your email id.Please try with that.
Hi Vakil,
I am facing problem while dragging a drag-able FlexMenu item which gives error:
“Error: Unable to find automation method ‘mx.automation.events.AutomationDragEvent’ for class ‘name: FlexMenu”
Is there any fix for this issue as well?
Warm regards,
Ali