Crosscheck is a JavaScript unit-testing framework capable of emulating multiple browser environments. For more information see: https://dev.thefrontside.net/crosscheck
Testpilot is a browser based unittesting framework for testing websites. With it you can record the keystrokes and mouse events for a session and play them back automatically. You can include assertions for values in inputs DIVs or JavaScript variables.