1. A computer system, comprising: a processor; and a computer-readable storage medium coupled to the processor and storing a scripting application, wherein the scripting application, when executed, is configured to selectively record user actions on user interface (UI) objects of a browser hosted application based on identification of at least one role for each UI object.