Perform an action, such as clicking a control in a graphical user interface, leading to the execution of a piece of code.