Rocket
2 years agoNew Contributor
How do I fix the Notepad Issue
Hello,
Recently I upgraded to Windows 11 with TestComplete and I am facing issues running Notepad for test comparison.
On running the test, I got the error below.
“Cannot find the c:\SESSION:uDpJ5CAjVEOpmP1JCiARJAAAAAEBAAAAAfRxxAIAAAAAAA=txt file.”
I am getting the error with this script below after updating Windows 11.
Function CompareTextFile(testingPath,goldStandardPath,fileName)
' check if notepad.exe is running then terminate it
Set p = Sys.WaitProcess("notepad")
if p.Exists then
p.Terminate
End if ' End if
' run notepad application
Call TestedApps.notepad.Run(1, True)
' delay
delay 500
Call Aliases.notepad.wndNotepad.Edit.Keys("^v")
' delay
delay 500
' Save values
Call Aliases.notepad.wndNotepad.Edit.Keys("^s")
delay 500