It would be nice to have something like
addAttributeChangeListener for HtmlElement (and
corresponding
AttributeChangeListener/AttributeChangeEvent classes),
so that you can receive a notification of when some
attribute changes its value (when javascript sets the
value of an input element, for instance).
Logged In: YES
user_id=257129
Could you provide an example of how you would use this?
Logged In: YES
user_id=1161525
Say you have a normal href link which, when clicked,
executes some javascript that modifies the value of an input
element (toggles a radio button/enters text in a textfield etc.).
If you have a visual representation of those elements (like a
JRadioButton or JTextField in this case), it would be nice to
have them re-rendered when the "selected" or "value"
attributes change.
Logged In: YES
user_id=402164
Originator: NO
I'm thinking about adding such features too. More generally I want that WebTest gets "notified" on all changes in the DOM: as well attribute changes as node added/removed.
Logged In: YES
user_id=950730
Originator: NO
Addded HtmlAttributeChangeListener and HtmlAttributeEvent in SVN. To be used with individual HtmlElement or HtmlPage (for all its sub elements).
I am leaving this open till having listener for node add/remove.
Hope that helps, many thanks.
Logged In: YES
user_id=950730
Originator: NO
Node add/remove is implemented in svn.
Many thanks.