When we are executing regression suite for web application during the run time my system will be locking and it will showing screen saver also. So for this thing my script will showing fail due to my system locking & screen saver
You might also need this in ScriptExit() function:
<font class="small">Code:</font><hr /><pre>
[-] void EnableScreenSaver ()
[ ] //Place it in the ScriptExit( ) function.
[ ] SystemParametersInfo (17, 1, 0, 0)