Commits

Anonymous committed 4f9d6ab

#i113609# sleep is needed after loading document to give time for macro execution

Comments (0)

Files changed (1)

testautomation/framework/optional/includes/basic_spectemplate.inc

     printlog( "Load the file again" )
     hFileOpen( cWorkFile )
     hAllowMacroExecution()
+
+    ' This sleep here is needed after loading the document otherwise the document is closed too early during execution of the macros, which results in basic runtime error messagebox, that can not be handled.
+    SLEEP(1)
     
     printlog( "Cleanup: Close the document and delete the file" )
     hDestroyDocument()
     hDeleteFile( cWorkFile )
-
 endcase