> > As an alternative to using the browser's native id attribute (in
> cases
> > where that might be a problem) you can use a data attribute: <input
> > data-flex-id="myid">
> 
> That sounds like the proper way to do this, if RIATest can run on that
> type of attributes.
Yes, RIATest can run on any public attribute. It is just that the id
attribute is used by default and results in a bit cleaner script syntax. It
also useful during recording, and is shown in the object inspector view.
However data-flex-id attribute is also fully usable. We can probably even
teach RIATest to use it by default for all DOM elements which are generated
by FlexJS. 

Similarly for the automationName property (which is currently a standard
property for mx.core.UIComponent) would be best to populate it into
data-automation-name DOM attribute.

Tigran.

Reply via email to