A testing framework used for capturing a user's UI interaction, and for generating scripts which can automatically play back a captured interaction.