Recording Ajax events
Ajax events will be recorded automatically resulting in the command
waitForAjax (method, requestURI)
Starting from Moly 0.7.3, you can turn off Ajax recording by adding this command to the command filter (in the preferences dialog).
Note that the command waitForAjax is just a placeholder in order to play previously recorded tests without having to bother with synchronisation events regarding Ajax. In order to make your test more stable, consider replacing the waitForAjax command with a more appropriate waitForXXX command from the command reference, thus expressing the expected GUI change instead of the technical trigger:
Reacting on DOM changes
In recording mode, DOM changes are captured as well. However, currently they're
not resulting in any waitForXXX commands but do appear in the log window.
This is a nice hint to the user, being able to react upon these changes by
inserting the appropriate waitForXXX commands himself:
However, do expect more tool support regarding DOM changes in the later versions.
For more infos see command waitForAjax
Very likely, you also want to further abstract your low level Ajax handling using Bricks.