Forum Discussion
nastester
4 months agoRegular Contributor
Not sure if this will help you much but I have a script routine that I call in a keyword test to do something similar:
function DownloadFileExists()
{
var file = "C:\\Users\\" + Sys.UserName + "\\Downloads\\Text_Messaging.pdf"
if (aqFileSystem.Exists(file)) {
Log.Message("File exists: " + file);
} else {
Log.Error("File does not exist")
}
}