A firefox plugin can record user action and generate functional test. http://developer.spikesource.com/wiki/index.php/Projects:TestGen4Web