8.6

Table Of Contents
Level Description
1 The message is logged as an Error in the log file.
2 The message is logged as a Warning in the log file.
3 The message is logged as Information in the log file.
4 The message only appears when the application runs in Debug mode.
Examples
In the following example, log() will write an information entry in the watch log that says "this is a
log"
VBScript
Watch.Log "this is a log", 3
JavaScript
Watch.Log("this is a log", 3);
Python
Watch.Log("this is a log",3)
Perl
$Watch->Log("this is a log",3);
Watch.Sleep
Pauses the process for the specified number of milliseconds. This can be used while waiting
for something else to happen when the delay is known.
Syntax
Watch.Sleep Milliseconds: integer
Example
In the following example, sleep()pauses the process for 1 second (1000 milliseconds)
Page 114