Inserting a Comment in a Script

Use the Output window to review automation code and append additional user-defined output to provide supplemental information about a script. For instance, you can add comments to provide supplemental information about a script. After playback of a script, the comment appears in the Output window.

  1. In a script, you can add comments by using the Console.Write and the Console.WriteLine commands. The Comment method takes a string as a parameter. The contents of this string are saved in the Output window after playback of the script.
  2. Play back the script. From the Output window, you can view the automation code and the comments that you added.