1. A system, comprising: at least one computer hardware processor; and at least one non-transitory computer-readable storage medium storing processor-executable instructions that, when executed by the at least one computer hardware processor, cause the at least one computer hardware processor to perform: generating an object hierarchy comprising a plurality of objects corresponding to active graphical user interface (GUI) elements of at least one application program; controlling the at least one application program to perform a task comprising a sequence of actions at least in part by using the object hierarchy to invoke actions in the sequence of actions; and during performance of the sequence of actions, generating a visual record of how a GUI of the at least one application program would appear on a display during the performance of the sequence of actions and a log of already-performed actions in the sequence of actions, the log containing at least some information not in the visual record and the visual record containing at least some information not in the log; storing the visual record and the log; determining than an error in performance of the sequence of actions has occurred, the error preventing completing automated performance of the sequence of actions without human intervention; and when it is determined that the error in performance of the sequence of actions has occurred, providing to a user the visual record and the log.