Posted By: Peter Nicolai Motzfeldt
Date: 2007-11-18 11:32
Summary: FunFX-0.0.2 Released
Project: FunFX
An updated version of FunFX has been released and solves some problems when testing repeaters. With repeaters all the similar elements have the same id, amking it diffucult to test. But now FunFX supports arrays of display objects with the same name or id. This is implemented in the way thet if the framework does only find one occurence of the desired object it handles the object as a single object letting you still write things like:
@ie.button("buttonName").click
But if there are multiple buttons with the name "buttonName" you can interact with each of the elements like an array:
@ie.button("buttonName")[0].click
This make it possible to iterate and test the value in a repeater.
Buit there are a issue one must be aware of, and that is in th hierarchy of an Flex application, the children of an repeater is also the direct chidlren of the repeaters parent. This means that if you have an repeater with the name "rep" and the repeaters dataprovider has to items and the repeater shows two buttons, with the name "buttonName". If you just write @ie.button("buttonName"), this array will contain 4 buttons. So you will have to write @ie.repeater("rep").button("buttonName"). This way you only get two items. |
|